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
- LocationReference.cs
- ServiceParser.cs
- CompilationRelaxations.cs
- COM2FontConverter.cs
- DataKeyCollection.cs
- SettingsPropertyValue.cs
- EtwTrace.cs
- OleDbCommand.cs
- RelationshipType.cs
- CacheEntry.cs
- MouseDevice.cs
- ProfileGroupSettings.cs
- WebPart.cs
- XmlUnspecifiedAttribute.cs
- StateManagedCollection.cs
- HttpListenerContext.cs
- TableLayoutPanel.cs
- ObjectManager.cs
- OdbcParameter.cs
- Calendar.cs
- ReadWriteSpinLock.cs
- EncoderFallback.cs
- HttpModuleActionCollection.cs
- DependencyPropertyAttribute.cs
- Light.cs
- InvalidFilterCriteriaException.cs
- Formatter.cs
- SHA512Managed.cs
- Queue.cs
- ToolStripItemCollection.cs
- LayoutSettings.cs
- MatrixStack.cs
- CultureMapper.cs
- XmlSerializerNamespaces.cs
- ItemDragEvent.cs
- NeutralResourcesLanguageAttribute.cs
- TraceSection.cs
- TraceHandler.cs
- RootBrowserWindowAutomationPeer.cs
- ScrollBarRenderer.cs
- ContextQuery.cs
- HwndSource.cs
- ImageDrawing.cs
- TableLayout.cs
- RootBrowserWindow.cs
- HtmlPanelAdapter.cs
- Camera.cs
- DuplexSecurityProtocolFactory.cs
- TraceUtility.cs
- CalendarDayButton.cs
- InvalidBodyAccessException.cs
- SerializationFieldInfo.cs
- NamespaceInfo.cs
- SecureStringHasher.cs
- ListViewItemEventArgs.cs
- QueryableDataSource.cs
- InstalledFontCollection.cs
- Column.cs
- Lease.cs
- DataGridViewTextBoxColumn.cs
- EventInfo.cs
- QilLiteral.cs
- TypeTypeConverter.cs
- XamlTreeBuilderBamlRecordWriter.cs
- XmlFormatWriterGenerator.cs
- PageThemeParser.cs
- MimeBasePart.cs
- HuffmanTree.cs
- BuilderElements.cs
- GlyphElement.cs
- DataGridViewButtonCell.cs
- SystemNetworkInterface.cs
- OleServicesContext.cs
- DataComponentGenerator.cs
- QueryOutputWriter.cs
- MetadataArtifactLoaderResource.cs
- DefaultTraceListener.cs
- DataGridViewRowsRemovedEventArgs.cs
- XmlSchemaExporter.cs
- ErrorWebPart.cs
- BasicCellRelation.cs
- Vector3D.cs
- SliderAutomationPeer.cs
- Rule.cs
- SyntaxCheck.cs
- WindowsStatic.cs
- TableAutomationPeer.cs
- OracleCommandSet.cs
- CryptoApi.cs
- ComponentDispatcher.cs
- Visual3D.cs
- BinaryFormatterWriter.cs
- GenericXmlSecurityToken.cs
- InstanceCreationEditor.cs
- GraphicsContext.cs
- DataGridViewRowCollection.cs
- RemoteX509AsymmetricSecurityKey.cs
- IListConverters.cs
- PerformanceCounterLib.cs
- DataChangedEventManager.cs