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
- LogRecordSequence.cs
- Thread.cs
- SelectedGridItemChangedEvent.cs
- TemplatedWizardStep.cs
- AnimationClock.cs
- WeakReferenceKey.cs
- PenThread.cs
- ActionFrame.cs
- AvTraceDetails.cs
- ReadOnlyObservableCollection.cs
- ToolStripSplitStackLayout.cs
- PackageRelationshipSelector.cs
- CmsInterop.cs
- MetadataPropertyAttribute.cs
- metadatamappinghashervisitor.cs
- TextEncodedRawTextWriter.cs
- BCLDebug.cs
- WindowsTitleBar.cs
- TextReader.cs
- DocumentViewerConstants.cs
- GeneratedView.cs
- ShaderEffect.cs
- TraceHwndHost.cs
- ServerIdentity.cs
- XmlSchemaSimpleTypeUnion.cs
- ReadOnlyHierarchicalDataSource.cs
- FormView.cs
- SystemIcons.cs
- XmlSchemaComplexContent.cs
- HandlerWithFactory.cs
- XmlRawWriter.cs
- DataTrigger.cs
- RadioButtonAutomationPeer.cs
- SqlUdtInfo.cs
- XPathConvert.cs
- ToolStripOverflowButton.cs
- StructuredTypeEmitter.cs
- FrameworkElementFactory.cs
- CallbackWrapper.cs
- GraphicsContainer.cs
- CompiledQueryCacheKey.cs
- Literal.cs
- TrustSection.cs
- DoubleLink.cs
- StandardToolWindows.cs
- ProtocolElementCollection.cs
- BaseTemplateParser.cs
- FixedMaxHeap.cs
- XmlTextEncoder.cs
- ScriptingJsonSerializationSection.cs
- XmlNodeChangedEventManager.cs
- XmlDataSourceNodeDescriptor.cs
- DbConnectionFactory.cs
- StrongName.cs
- HttpRawResponse.cs
- EqualityComparer.cs
- ToolboxItem.cs
- TcpProcessProtocolHandler.cs
- RightNameExpirationInfoPair.cs
- InternalTypeHelper.cs
- FocusManager.cs
- SqlClientWrapperSmiStream.cs
- TypographyProperties.cs
- GeometryDrawing.cs
- EncryptedKeyIdentifierClause.cs
- Publisher.cs
- ButtonBaseAutomationPeer.cs
- ClipboardProcessor.cs
- FontFamilyIdentifier.cs
- UIElementParagraph.cs
- RequiredFieldValidator.cs
- ToolStripItemRenderEventArgs.cs
- ImageListStreamer.cs
- LiteralText.cs
- ObjectCache.cs
- Model3DGroup.cs
- hebrewshape.cs
- MimeMapping.cs
- XmlReaderSettings.cs
- DataError.cs
- GetFileNameResult.cs
- GlyphRunDrawing.cs
- ProjectedSlot.cs
- MimeAnyImporter.cs
- TextWriterTraceListener.cs
- DataQuery.cs
- PixelFormats.cs
- XmlTextWriter.cs
- StreamWriter.cs
- QueuePathDialog.cs
- WrappedKeySecurityTokenParameters.cs
- LockCookie.cs
- XmlWellformedWriter.cs
- DCSafeHandle.cs
- DataSourceView.cs
- ComboBox.cs
- TableLayoutStyleCollection.cs
- MoveSizeWinEventHandler.cs
- SqlInternalConnectionTds.cs
- RelativeSource.cs