Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / ServiceModel / Dispatcher / WorkflowDispatchContext.cs / 1305376 / WorkflowDispatchContext.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Dispatcher { using System.Threading; using System.Collections.Generic; class WorkflowDispatchContext : IDisposable { [ThreadStatic] static WorkflowDispatchContext workflowDispatchContext = null; bool isWorkflowStarting; bool synchronous; public WorkflowDispatchContext(bool synchronous) : this(synchronous, false) { // empty } public WorkflowDispatchContext(bool synchronous, bool isWorkflowStarting) { this.synchronous = synchronous; this.isWorkflowStarting = isWorkflowStarting; workflowDispatchContext = this; } public static WorkflowDispatchContext Current { get { return workflowDispatchContext; } } public bool IsSynchronous { get { return this.synchronous; } } public bool IsWorkflowStarting { get { return this.isWorkflowStarting; } } public void Dispose() { workflowDispatchContext = null; } } } // 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
- SqlGatherProducedAliases.cs
- ToolboxItemAttribute.cs
- VolatileEnlistmentState.cs
- GridEntry.cs
- HttpInputStream.cs
- TcpProcessProtocolHandler.cs
- Timeline.cs
- XmlSchemaAnnotation.cs
- DbConvert.cs
- DataBoundControlAdapter.cs
- FlowLayoutPanel.cs
- controlskin.cs
- ClosableStream.cs
- RequestQueue.cs
- x509store.cs
- ApplicationManager.cs
- TreeNodeSelectionProcessor.cs
- SimpleLine.cs
- Rotation3DAnimationBase.cs
- SqlDataSourceEnumerator.cs
- InstalledVoice.cs
- SafeFileMapViewHandle.cs
- ConnectionStringEditor.cs
- DataGridViewDataErrorEventArgs.cs
- ConsumerConnectionPoint.cs
- PlainXmlWriter.cs
- SqlNodeTypeOperators.cs
- XmlQueryTypeFactory.cs
- TypeConverterAttribute.cs
- DesignTimeHTMLTextWriter.cs
- BackoffTimeoutHelper.cs
- HMACSHA384.cs
- Wow64ConfigurationLoader.cs
- SHA512Managed.cs
- ToolStripDropDownItem.cs
- RuntimeHelpers.cs
- XmlCountingReader.cs
- FormatterConverter.cs
- Component.cs
- RecognizedAudio.cs
- SqlExpander.cs
- OutputScope.cs
- ParseHttpDate.cs
- MenuCommand.cs
- IncrementalHitTester.cs
- ParameterExpression.cs
- BufferedReceiveManager.cs
- TextCompositionManager.cs
- BrowserTree.cs
- ZipFileInfoCollection.cs
- BinaryWriter.cs
- LogEntryHeaderv1Deserializer.cs
- Triplet.cs
- _SSPISessionCache.cs
- MonthCalendar.cs
- PlatformNotSupportedException.cs
- TransformedBitmap.cs
- StringAttributeCollection.cs
- WebBrowserProgressChangedEventHandler.cs
- SchemaImporterExtensionElement.cs
- DecimalAnimation.cs
- ResolveResponse.cs
- ItemType.cs
- TypeBuilderInstantiation.cs
- FileAuthorizationModule.cs
- JsonQueryStringConverter.cs
- DbConnectionPoolCounters.cs
- WeakReferenceList.cs
- Soap.cs
- SoapSchemaExporter.cs
- PageContentAsyncResult.cs
- TimeManager.cs
- TextSimpleMarkerProperties.cs
- ComponentChangedEvent.cs
- XmlCollation.cs
- SiteMapNodeCollection.cs
- SpeechAudioFormatInfo.cs
- WebZone.cs
- DecoderExceptionFallback.cs
- FlowDocumentScrollViewer.cs
- ReliableRequestSessionChannel.cs
- KeyConverter.cs
- CommandExpr.cs
- SelectionProcessor.cs
- Point3DAnimationBase.cs
- TableParagraph.cs
- BitVector32.cs
- BuildManager.cs
- ConsumerConnectionPoint.cs
- CompilerCollection.cs
- SecurityTokenReferenceStyle.cs
- QilChoice.cs
- Context.cs
- RuntimeIdentifierPropertyAttribute.cs
- DragEvent.cs
- ComplexBindingPropertiesAttribute.cs
- ArrayMergeHelper.cs
- RSAPKCS1SignatureFormatter.cs
- ClientApiGenerator.cs
- TraceContextEventArgs.cs