Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SharedUtils.cs
- RuntimeArgumentHandle.cs
- ClickablePoint.cs
- CoreChannel.cs
- PtsPage.cs
- LinearKeyFrames.cs
- HtmlButton.cs
- NamespaceEmitter.cs
- WS2007FederationHttpBindingCollectionElement.cs
- CheckBoxList.cs
- BaseServiceProvider.cs
- CacheChildrenQuery.cs
- UnicodeEncoding.cs
- ButtonStandardAdapter.cs
- WinEventHandler.cs
- Model3DCollection.cs
- SyndicationPerson.cs
- DesignerVerbCollection.cs
- DiscoveryUtility.cs
- StylusPointPropertyUnit.cs
- ToolboxComponentsCreatedEventArgs.cs
- ToolStripContentPanel.cs
- ProtocolState.cs
- XamlReader.cs
- SelectedDatesCollection.cs
- AutomationPropertyInfo.cs
- ReservationCollection.cs
- DbConnectionOptions.cs
- JpegBitmapDecoder.cs
- ScopeCollection.cs
- FilteredXmlReader.cs
- ReferenceSchema.cs
- DataConnectionHelper.cs
- TextWriter.cs
- DirectionalLight.cs
- HtmlControlPersistable.cs
- ProfileServiceManager.cs
- MetadataArtifactLoaderXmlReaderWrapper.cs
- DetailsView.cs
- LocalFileSettingsProvider.cs
- Recipient.cs
- ClientEventManager.cs
- AssociationProvider.cs
- MutexSecurity.cs
- X509ServiceCertificateAuthenticationElement.cs
- GridViewUpdatedEventArgs.cs
- DPAPIProtectedConfigurationProvider.cs
- NameValueConfigurationElement.cs
- BinaryFormatterWriter.cs
- SymDocumentType.cs
- Object.cs
- IisTraceListener.cs
- LOSFormatter.cs
- StartUpEventArgs.cs
- TextElementEnumerator.cs
- CodeStatement.cs
- HttpServerVarsCollection.cs
- BlurBitmapEffect.cs
- Size.cs
- InfocardInteractiveChannelInitializer.cs
- DataGridClipboardHelper.cs
- SingleObjectCollection.cs
- GridViewRow.cs
- AstTree.cs
- TraceSwitch.cs
- OutputCacheSection.cs
- SignatureDescription.cs
- MenuStrip.cs
- AmbiguousMatchException.cs
- JavaScriptSerializer.cs
- RawStylusInputCustomDataList.cs
- figurelengthconverter.cs
- GeneralTransformGroup.cs
- TableDesigner.cs
- DateTimeValueSerializerContext.cs
- SplitterPanel.cs
- WindowsGraphics2.cs
- LineBreakRecord.cs
- BitmapEffectInputConnector.cs
- HostAdapter.cs
- HGlobalSafeHandle.cs
- AutoCompleteStringCollection.cs
- CacheMemory.cs
- NumericExpr.cs
- InitializerFacet.cs
- MemberInfoSerializationHolder.cs
- TreeNodeStyleCollection.cs
- MenuAutoFormat.cs
- DynamicRendererThreadManager.cs
- FuncTypeConverter.cs
- GradientStop.cs
- GuidelineCollection.cs
- LongValidator.cs
- SafeFileHandle.cs
- WaitForChangedResult.cs
- ButtonChrome.cs
- Listbox.cs
- HiddenFieldPageStatePersister.cs
- ErrorInfoXmlDocument.cs
- odbcmetadatacolumnnames.cs