TrackingParameters.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / RunTime / Tracking / TrackingParameters.cs / 1305376 / TrackingParameters.cs

                            using System; 
using System.Collections;
using System.Collections.Generic;
using System.Workflow.ComponentModel;
using System.Runtime.Serialization; 
using System.Security.Permissions;
using System.Workflow.Runtime.Hosting; 
 
namespace System.Workflow.Runtime.Tracking
{ 
    /// 
    /// Contains data useful when construction tracking channels
    /// 
    public sealed class TrackingParameters 
    {
        private Guid _instanceId = Guid.Empty; 
        private Guid _callerInstanceId = Guid.Empty; 
        private Type _workflowType = null;
        private IList _activityCallPath = null; 
        private Guid _contextGuid = Guid.Empty, _callerContextGuid = Guid.Empty, _callerParentContextGuid = Guid.Empty;
        private Activity _rootActivity = null;

        private TrackingParameters() 
        {
        } 
 
        public TrackingParameters(Guid instanceId, Type workflowType, Activity rootActivity, IList callPath, Guid callerInstanceId, Guid contextGuid, Guid callerContextGuid, Guid callerParentContextGuid)
        { 
            _instanceId = instanceId;
            _workflowType = workflowType;
            _activityCallPath = callPath;
            _callerInstanceId = callerInstanceId; 
            _contextGuid = contextGuid;
            _callerContextGuid = callerContextGuid; 
            _callerParentContextGuid = callerParentContextGuid; 
            _rootActivity = rootActivity;
        } 

        public Guid InstanceId
        {
            get { return _instanceId; } 
        }
 
        public Type WorkflowType 
        {
            get { return _workflowType; } 
        }

        public Activity RootActivity
        { 
            get { return _rootActivity; }
        } 
 
        public IList CallPath
        { 
            get { return _activityCallPath; }
        }

        public Guid CallerInstanceId 
        {
            get { return _callerInstanceId; } 
        } 

        public Guid ContextGuid 
        {
            get { return _contextGuid; }
        }
 
        public Guid CallerContextGuid
        { 
            get { return _callerContextGuid; } 
        }
 
        public Guid CallerParentContextGuid
        {
            get { return _callerParentContextGuid; }
        } 
    }
} 
 

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.
                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK