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
- SessionEndingEventArgs.cs
- DataGridViewRowHeaderCell.cs
- InputLangChangeRequestEvent.cs
- RequestQueryParser.cs
- CancellationHandler.cs
- PaintValueEventArgs.cs
- CompiledQuery.cs
- ExpressionDumper.cs
- StringValueSerializer.cs
- FixedDocument.cs
- thaishape.cs
- FixedSOMTableRow.cs
- XmlSchemaSimpleTypeRestriction.cs
- Cell.cs
- ObjectRef.cs
- PixelShader.cs
- CryptoStream.cs
- SurrogateEncoder.cs
- Assert.cs
- Oci.cs
- HitTestParameters.cs
- CodeDOMUtility.cs
- ClientReliableChannelBinder.cs
- PropertyGeneratedEventArgs.cs
- ConfigXmlDocument.cs
- ValidationErrorCollection.cs
- GridViewRowPresenterBase.cs
- ServiceBehaviorElement.cs
- PauseStoryboard.cs
- FindCriteriaApril2005.cs
- ServiceOperation.cs
- PermissionRequestEvidence.cs
- DataGridViewRowsRemovedEventArgs.cs
- EventLogEntryCollection.cs
- MobileUserControlDesigner.cs
- UnicastIPAddressInformationCollection.cs
- NumberFormatInfo.cs
- TableItemPattern.cs
- StrokeNodeEnumerator.cs
- Activation.cs
- LinqDataSourceValidationException.cs
- PagesSection.cs
- WebBrowser.cs
- DataGridViewIntLinkedList.cs
- ZipIOCentralDirectoryFileHeader.cs
- ToolBarOverflowPanel.cs
- FormViewUpdateEventArgs.cs
- httpserverutility.cs
- MenuCommand.cs
- KeyGestureConverter.cs
- ProgressChangedEventArgs.cs
- IconBitmapDecoder.cs
- ResourceAssociationSetEnd.cs
- ArraySortHelper.cs
- FullTextLine.cs
- DebugInfoExpression.cs
- SqlDataSourceEnumerator.cs
- LocationReferenceEnvironment.cs
- IPHostEntry.cs
- HtmlForm.cs
- GeneralTransform3DTo2D.cs
- LinkButton.cs
- MemberRelationshipService.cs
- CommonProperties.cs
- WindowHelperService.cs
- ThreadExceptionEvent.cs
- FontFamily.cs
- NavigatorInput.cs
- ModelItemExtensions.cs
- ExpressionLink.cs
- MdiWindowListItemConverter.cs
- cookiecontainer.cs
- ProvidePropertyAttribute.cs
- CacheModeValueSerializer.cs
- PartialToken.cs
- ToolBar.cs
- CustomTrackingQuery.cs
- NativeMethods.cs
- GridViewRowCollection.cs
- SqlResolver.cs
- Material.cs
- TablePatternIdentifiers.cs
- EncodingNLS.cs
- EntityContainerRelationshipSet.cs
- XPathNavigator.cs
- StringBuilder.cs
- WriteStateInfoBase.cs
- ZipPackage.cs
- HttpChannelHelper.cs
- TypedCompletedAsyncResult.cs
- ExceptionAggregator.cs
- ToolStripPanel.cs
- DBSchemaTable.cs
- SoapServerProtocol.cs
- ReturnEventArgs.cs
- NetStream.cs
- EntityDataSourceEntityTypeFilterConverter.cs
- _BufferOffsetSize.cs
- FlagsAttribute.cs
- OperatingSystem.cs