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
- Viewport3DVisual.cs
- DataGridItemCollection.cs
- __Error.cs
- PolicyValidationException.cs
- Int64AnimationUsingKeyFrames.cs
- RequestCachePolicy.cs
- SafeBitVector32.cs
- DbDataAdapter.cs
- RewritingValidator.cs
- GridViewCancelEditEventArgs.cs
- CultureTable.cs
- ListSortDescriptionCollection.cs
- ArrayWithOffset.cs
- RepeaterDesigner.cs
- TargetConverter.cs
- DataBindingCollectionEditor.cs
- QilInvokeLateBound.cs
- PointLightBase.cs
- HtmlEncodedRawTextWriter.cs
- RootProfilePropertySettingsCollection.cs
- Expressions.cs
- Filter.cs
- Inline.cs
- FileDialogCustomPlace.cs
- EdgeModeValidation.cs
- _AcceptOverlappedAsyncResult.cs
- ErrorItem.cs
- AdRotator.cs
- CFStream.cs
- KoreanCalendar.cs
- ServiceInfo.cs
- User.cs
- CodeCompiler.cs
- ScrollProperties.cs
- Utilities.cs
- JsonQNameDataContract.cs
- MailSettingsSection.cs
- TextTreeText.cs
- CanExpandCollapseAllConverter.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- MasterPageCodeDomTreeGenerator.cs
- ModuleBuilderData.cs
- HashSetEqualityComparer.cs
- PresentationAppDomainManager.cs
- ExpandCollapseProviderWrapper.cs
- TableItemStyle.cs
- AlphaSortedEnumConverter.cs
- BoundingRectTracker.cs
- TemplateManager.cs
- ThousandthOfEmRealDoubles.cs
- ImageButton.cs
- IntSecurity.cs
- TextChangedEventArgs.cs
- Image.cs
- DrawingVisual.cs
- ImageMapEventArgs.cs
- ListViewDeletedEventArgs.cs
- ObjectTypeMapping.cs
- ParseElement.cs
- ItemList.cs
- OptimizedTemplateContent.cs
- EntityDataSourceStatementEditor.cs
- DSACryptoServiceProvider.cs
- LogEntrySerialization.cs
- ToolStripRendererSwitcher.cs
- TemplateXamlParser.cs
- SemanticResolver.cs
- NativeObjectSecurity.cs
- TextBox.cs
- SqlDataSourceView.cs
- ComboBoxItem.cs
- SourceItem.cs
- ApplicationFileCodeDomTreeGenerator.cs
- StatusBar.cs
- SynchronizationFilter.cs
- ResourcePool.cs
- RectKeyFrameCollection.cs
- TagPrefixCollection.cs
- ChannelTerminatedException.cs
- SymmetricCryptoHandle.cs
- ExceptionUtil.cs
- InputGestureCollection.cs
- AudioFormatConverter.cs
- BulletedList.cs
- StrongNameKeyPair.cs
- Overlapped.cs
- FontFaceLayoutInfo.cs
- StorageMappingItemLoader.cs
- DbProviderServices.cs
- TextControlDesigner.cs
- XmlException.cs
- XmlCharacterData.cs
- RNGCryptoServiceProvider.cs
- TreeViewImageIndexConverter.cs
- FilterException.cs
- TextTreeTextElementNode.cs
- RepeaterItem.cs
- ToolConsole.cs
- StartUpEventArgs.cs
- LabelAutomationPeer.cs