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
- MediaEntryAttribute.cs
- ManipulationLogic.cs
- WebBrowsableAttribute.cs
- ValidationSummary.cs
- InputLangChangeRequestEvent.cs
- WindowProviderWrapper.cs
- Pen.cs
- PathNode.cs
- XsltArgumentList.cs
- LoadGrammarCompletedEventArgs.cs
- FederatedMessageSecurityOverHttpElement.cs
- Selector.cs
- ApplicationInfo.cs
- BooleanStorage.cs
- CompModSwitches.cs
- UnsafeNativeMethods.cs
- SqlCommandBuilder.cs
- brushes.cs
- InstanceDescriptor.cs
- IntSecurity.cs
- CheckBoxDesigner.cs
- EntityDataSourceWrapper.cs
- QuadTree.cs
- XmlSchemas.cs
- XmlDataLoader.cs
- EncryptedData.cs
- ReservationCollection.cs
- CodeTypeConstructor.cs
- RemoveStoryboard.cs
- DiscoveryProxy.cs
- StreamSecurityUpgradeInitiatorAsyncResult.cs
- Byte.cs
- BoundPropertyEntry.cs
- Automation.cs
- RepeatBehavior.cs
- DependencyObjectType.cs
- InternalTypeHelper.cs
- DesignerTextBoxAdapter.cs
- ReadWriteSpinLock.cs
- dataobject.cs
- AddInAttribute.cs
- DesignerMetadata.cs
- DelegateSerializationHolder.cs
- EncoderReplacementFallback.cs
- CountAggregationOperator.cs
- EdmEntityTypeAttribute.cs
- EntitySetBaseCollection.cs
- ZipIOBlockManager.cs
- CatalogPart.cs
- BeginStoryboard.cs
- MessageQueueConverter.cs
- LongAverageAggregationOperator.cs
- ErrorFormatterPage.cs
- DynamicMethod.cs
- ScopelessEnumAttribute.cs
- GuidelineCollection.cs
- XmlSchemaCollection.cs
- BinaryWriter.cs
- WebScriptMetadataMessageEncoderFactory.cs
- METAHEADER.cs
- IPEndPointCollection.cs
- Crc32Helper.cs
- TableLayoutStyleCollection.cs
- dsa.cs
- ButtonAutomationPeer.cs
- _ListenerResponseStream.cs
- ScrollChrome.cs
- FilterQuery.cs
- ToolStripComboBox.cs
- FieldBuilder.cs
- MouseGestureConverter.cs
- XmlNamespaceManager.cs
- SessionStateUtil.cs
- MaskedTextBoxTextEditorDropDown.cs
- MarkupProperty.cs
- IBuiltInEvidence.cs
- InkSerializer.cs
- StorageEndPropertyMapping.cs
- TextPenaltyModule.cs
- StateItem.cs
- ResourceCategoryAttribute.cs
- Columns.cs
- PointLightBase.cs
- EntityContainerEmitter.cs
- SectionVisual.cs
- OneOf.cs
- WebBrowserNavigatedEventHandler.cs
- HGlobalSafeHandle.cs
- HistoryEventArgs.cs
- BatchStream.cs
- SecurityRequiresReviewAttribute.cs
- AudioException.cs
- CharacterMetrics.cs
- MarkupCompiler.cs
- Hex.cs
- NegotiateStream.cs
- DesignerToolboxInfo.cs
- Visual3DCollection.cs
- DoubleLinkListEnumerator.cs
- EventLogPermissionEntryCollection.cs