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
- MemoryMappedViewAccessor.cs
- InstancePersistenceCommand.cs
- NavigationWindowAutomationPeer.cs
- MultiTrigger.cs
- CreateInstanceBinder.cs
- NegationPusher.cs
- StylusPointPropertyInfoDefaults.cs
- GroupDescription.cs
- UInt32.cs
- Ipv6Element.cs
- FatalException.cs
- TagMapInfo.cs
- DocumentViewerAutomationPeer.cs
- NullExtension.cs
- MarginCollapsingState.cs
- ExpressionBindingCollection.cs
- PopupEventArgs.cs
- XmlReaderSettings.cs
- ItemMap.cs
- ProfileEventArgs.cs
- StrongNameIdentityPermission.cs
- TransformationRules.cs
- DecimalConverter.cs
- RequestQueue.cs
- metadatamappinghashervisitor.cs
- ExtensionSurface.cs
- StateValidator.cs
- InfoCardRSAPKCS1KeyExchangeDeformatter.cs
- _FtpDataStream.cs
- IncrementalCompileAnalyzer.cs
- EmptyEnumerator.cs
- ErrorView.xaml.cs
- RuntimeWrappedException.cs
- CommentAction.cs
- TextLineResult.cs
- FieldMetadata.cs
- ShutDownListener.cs
- Rotation3DAnimationBase.cs
- TableCell.cs
- CookieParameter.cs
- Atom10FormatterFactory.cs
- ColorPalette.cs
- IdlingCommunicationPool.cs
- ValidationErrorEventArgs.cs
- RegistryKey.cs
- StrokeNodeOperations2.cs
- BitmapEffectDrawing.cs
- Timer.cs
- HttpCookiesSection.cs
- SoapAttributeOverrides.cs
- SQLInt16Storage.cs
- ProfessionalColorTable.cs
- HandleRef.cs
- BindingList.cs
- DetailsViewModeEventArgs.cs
- RoutedPropertyChangedEventArgs.cs
- PageClientProxyGenerator.cs
- RoleGroupCollection.cs
- Bold.cs
- CardSpacePolicyElement.cs
- ZipFileInfo.cs
- ToolStripStatusLabel.cs
- DoubleAnimationUsingPath.cs
- ToolStripTextBox.cs
- Screen.cs
- UriTemplateLiteralQueryValue.cs
- HiddenField.cs
- ActivityExecutor.cs
- XmlStreamStore.cs
- UserNamePasswordValidator.cs
- PowerStatus.cs
- DrawingAttributeSerializer.cs
- ConstrainedGroup.cs
- MobileControlsSectionHandler.cs
- InvokeMethodActivity.cs
- PrintDialog.cs
- MenuEventArgs.cs
- DbSource.cs
- BulletChrome.cs
- ThicknessConverter.cs
- XmlValidatingReader.cs
- XPathScanner.cs
- DelegateSerializationHolder.cs
- XmlComplianceUtil.cs
- RuntimeTrackingProfile.cs
- PropertyRef.cs
- UrlPath.cs
- SiteMapNodeItemEventArgs.cs
- PrintPageEvent.cs
- AppDomainFactory.cs
- CompilerCollection.cs
- OleDbEnumerator.cs
- MatcherBuilder.cs
- SQLByteStorage.cs
- ByteStreamGeometryContext.cs
- FormViewCommandEventArgs.cs
- ContentDefinition.cs
- ExpressionContext.cs
- EventMappingSettingsCollection.cs
- GenericQueueSurrogate.cs