Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / Activities / LocalService / WorkflowMessageEventArgs.cs / 1305376 / WorkflowMessageEventArgs.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- #region Using directives using System; using System.Diagnostics; using System.Collections; using System.Reflection; using System.Runtime.Serialization; using System.Workflow.ComponentModel; using System.Workflow.Runtime; using System.Workflow.Runtime.Hosting; using System.Security.Principal; #endregion namespace System.Workflow.Activities { [AttributeUsageAttribute(AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] public sealed class ExternalDataExchangeAttribute : Attribute { } [AttributeUsageAttribute(AttributeTargets.Event | AttributeTargets.Method, AllowMultiple = false)] public sealed class CorrelationInitializerAttribute : Attribute { } [AttributeUsageAttribute(AttributeTargets.Interface, AllowMultiple = true)] public sealed class CorrelationParameterAttribute : Attribute { private string name = string.Empty; public CorrelationParameterAttribute(string name) { this.name = name; } public string Name { get { return this.name; } } } [AttributeUsageAttribute(AttributeTargets.Delegate | AttributeTargets.Event | AttributeTargets.Method, AllowMultiple = true)] public sealed class CorrelationAliasAttribute : Attribute { private string path; private string name; public CorrelationAliasAttribute(String name, String path) { this.path = path; this.name = name; } public String Name { get { return this.name; } } public String Path { get { return path; } } } [Serializable] public class ExternalDataEventArgs : EventArgs { Guid instanceId; object batchworkItem; IPendingWork batchworkHandler; String identity; bool waitForIdle; public ExternalDataEventArgs() : this(Guid.Empty, null, null, false) { } public ExternalDataEventArgs(Guid instanceId) : this(instanceId, null, null, false) { } public ExternalDataEventArgs(Guid instanceId, IPendingWork workHandler, object workItem, bool waitForIdle) { this.instanceId = instanceId; this.batchworkHandler = workHandler; this.batchworkItem = workItem; this.waitForIdle = waitForIdle; } public ExternalDataEventArgs(Guid instanceId, IPendingWork workHandler, object workItem) : this(instanceId, workHandler, workItem, false) { } public Guid InstanceId { get { return this.instanceId; } set { this.instanceId = value; } } public object WorkItem { get { return this.batchworkItem; } set { this.batchworkItem = value; } } public IPendingWork WorkHandler { get { return this.batchworkHandler; } set { this.batchworkHandler = value; } } public String Identity { get { return this.identity; } set { this.identity = value; } } public bool WaitForIdle { get { return this.waitForIdle; } set { this.waitForIdle = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- #region Using directives using System; using System.Diagnostics; using System.Collections; using System.Reflection; using System.Runtime.Serialization; using System.Workflow.ComponentModel; using System.Workflow.Runtime; using System.Workflow.Runtime.Hosting; using System.Security.Principal; #endregion namespace System.Workflow.Activities { [AttributeUsageAttribute(AttributeTargets.Interface, AllowMultiple = false, Inherited = false)] public sealed class ExternalDataExchangeAttribute : Attribute { } [AttributeUsageAttribute(AttributeTargets.Event | AttributeTargets.Method, AllowMultiple = false)] public sealed class CorrelationInitializerAttribute : Attribute { } [AttributeUsageAttribute(AttributeTargets.Interface, AllowMultiple = true)] public sealed class CorrelationParameterAttribute : Attribute { private string name = string.Empty; public CorrelationParameterAttribute(string name) { this.name = name; } public string Name { get { return this.name; } } } [AttributeUsageAttribute(AttributeTargets.Delegate | AttributeTargets.Event | AttributeTargets.Method, AllowMultiple = true)] public sealed class CorrelationAliasAttribute : Attribute { private string path; private string name; public CorrelationAliasAttribute(String name, String path) { this.path = path; this.name = name; } public String Name { get { return this.name; } } public String Path { get { return path; } } } [Serializable] public class ExternalDataEventArgs : EventArgs { Guid instanceId; object batchworkItem; IPendingWork batchworkHandler; String identity; bool waitForIdle; public ExternalDataEventArgs() : this(Guid.Empty, null, null, false) { } public ExternalDataEventArgs(Guid instanceId) : this(instanceId, null, null, false) { } public ExternalDataEventArgs(Guid instanceId, IPendingWork workHandler, object workItem, bool waitForIdle) { this.instanceId = instanceId; this.batchworkHandler = workHandler; this.batchworkItem = workItem; this.waitForIdle = waitForIdle; } public ExternalDataEventArgs(Guid instanceId, IPendingWork workHandler, object workItem) : this(instanceId, workHandler, workItem, false) { } public Guid InstanceId { get { return this.instanceId; } set { this.instanceId = value; } } public object WorkItem { get { return this.batchworkItem; } set { this.batchworkItem = value; } } public IPendingWork WorkHandler { get { return this.batchworkHandler; } set { this.batchworkHandler = value; } } public String Identity { get { return this.identity; } set { this.identity = value; } } public bool WaitForIdle { get { return this.waitForIdle; } set { this.waitForIdle = value; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- MouseBinding.cs
- ScaleTransform3D.cs
- DefaultWorkflowSchedulerService.cs
- ThreadAbortException.cs
- MetadataArtifactLoaderComposite.cs
- _ShellExpression.cs
- UnionExpr.cs
- InputReferenceExpression.cs
- Guid.cs
- Geometry3D.cs
- TabControlCancelEvent.cs
- EventListenerClientSide.cs
- FreezableCollection.cs
- ReaderWriterLock.cs
- HtmlControlPersistable.cs
- WindowsButton.cs
- SQLConvert.cs
- PackageRelationshipCollection.cs
- TextureBrush.cs
- NameGenerator.cs
- NavigationFailedEventArgs.cs
- GregorianCalendarHelper.cs
- XmlUrlEditor.cs
- DragDeltaEventArgs.cs
- CodeExpressionStatement.cs
- SrgsDocumentParser.cs
- QueryPageSettingsEventArgs.cs
- XamlPointCollectionSerializer.cs
- Interlocked.cs
- InternalPermissions.cs
- DataSourceCacheDurationConverter.cs
- ParseChildrenAsPropertiesAttribute.cs
- AuthenticateEventArgs.cs
- Transform3DGroup.cs
- Point3DCollectionValueSerializer.cs
- CorrelationService.cs
- HtmlElement.cs
- LiteralDesigner.cs
- TypeSemantics.cs
- EntityTypeBase.cs
- ObjectSecurity.cs
- CollectionViewGroup.cs
- Typography.cs
- ModifierKeysConverter.cs
- ShaderEffect.cs
- HttpRuntimeSection.cs
- PeerOutputChannel.cs
- ILGenerator.cs
- ProcessThreadCollection.cs
- Menu.cs
- LinqDataSourceView.cs
- FocusManager.cs
- ModuleConfigurationInfo.cs
- XmlFormatWriterGenerator.cs
- HttpRequestContext.cs
- TypedTableHandler.cs
- SymmetricAlgorithm.cs
- WebConfigurationHost.cs
- VectorCollection.cs
- LogRecordSequence.cs
- ScaleTransform3D.cs
- ParameterBuilder.cs
- SiteMembershipCondition.cs
- UnsafeNativeMethods.cs
- TextSearch.cs
- RefType.cs
- HttpServerVarsCollection.cs
- RichTextBoxDesigner.cs
- WindowExtensionMethods.cs
- SqlDuplicator.cs
- PropertyGeneratedEventArgs.cs
- Geometry3D.cs
- OdbcException.cs
- ThreadStartException.cs
- FontStyle.cs
- ArglessEventHandlerProxy.cs
- MultiTrigger.cs
- PropertyTabAttribute.cs
- ObjectTag.cs
- ChtmlTextWriter.cs
- ListBoxItemWrapperAutomationPeer.cs
- XmlReaderDelegator.cs
- InputProcessorProfilesLoader.cs
- CodeStatement.cs
- SelectionEditingBehavior.cs
- PropertyChangedEventManager.cs
- TypeUtil.cs
- NumericExpr.cs
- OpenTypeLayout.cs
- UserPreferenceChangingEventArgs.cs
- BuildProvider.cs
- TypeLibConverter.cs
- SuppressIldasmAttribute.cs
- ReadOnlyDictionary.cs
- CodeDirectionExpression.cs
- HttpModuleAction.cs
- XmlCodeExporter.cs
- DictionaryEditChange.cs
- BindingCompleteEventArgs.cs
- CoTaskMemUnicodeSafeHandle.cs