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
- Transform.cs
- ThicknessKeyFrameCollection.cs
- CLSCompliantAttribute.cs
- BuildResultCache.cs
- BufferedMessageWriter.cs
- CodeSnippetExpression.cs
- TCEAdapterGenerator.cs
- TextRangeAdaptor.cs
- SmtpFailedRecipientException.cs
- FloatAverageAggregationOperator.cs
- OuterGlowBitmapEffect.cs
- ConfigurationLocation.cs
- SupportingTokenSecurityTokenResolver.cs
- CachedTypeface.cs
- WindowsAuthenticationEventArgs.cs
- Literal.cs
- Helpers.cs
- FileDialogPermission.cs
- FrameworkRichTextComposition.cs
- CopyAttributesAction.cs
- relpropertyhelper.cs
- ChannelDispatcher.cs
- BitmapEffectInputData.cs
- CodeCatchClause.cs
- DesignColumn.cs
- input.cs
- Region.cs
- MemberMaps.cs
- Win32.cs
- MaskedTextProvider.cs
- DiscardableAttribute.cs
- BoundConstants.cs
- ObjectStateEntryDbDataRecord.cs
- XmlSchemaCollection.cs
- DictionaryTraceRecord.cs
- AuthorizationSection.cs
- SignatureHelper.cs
- HttpPostedFileBase.cs
- FontFamilyValueSerializer.cs
- Accessible.cs
- ToolboxControl.cs
- DBDataPermission.cs
- ConnectionPoolManager.cs
- NavigationPropertySingletonExpression.cs
- Rotation3DAnimation.cs
- LoginDesigner.cs
- RootNamespaceAttribute.cs
- SiteMapNodeItemEventArgs.cs
- XmlSchemaAttribute.cs
- ConnectionPoolManager.cs
- SqlXmlStorage.cs
- FileSystemWatcher.cs
- xmlglyphRunInfo.cs
- MenuCommandsChangedEventArgs.cs
- ToolStripContainer.cs
- ChangeBlockUndoRecord.cs
- DataGridLinkButton.cs
- ViewStateModeByIdAttribute.cs
- ListViewPagedDataSource.cs
- TemplateControlCodeDomTreeGenerator.cs
- SafeUserTokenHandle.cs
- FlowSwitchLink.cs
- RegexParser.cs
- RenderData.cs
- DefaultValueMapping.cs
- BuildProvider.cs
- CryptoApi.cs
- FocusManager.cs
- SharedPerformanceCounter.cs
- SqlTypeConverter.cs
- Debugger.cs
- PropertyDescriptorGridEntry.cs
- DataServiceQuery.cs
- EmptyEnumerable.cs
- _LocalDataStore.cs
- InteropBitmapSource.cs
- XmlSchemaFacet.cs
- WinEventTracker.cs
- ControlCachePolicy.cs
- FieldNameLookup.cs
- DataGridViewCellToolTipTextNeededEventArgs.cs
- ReadonlyMessageFilter.cs
- ZoneButton.cs
- BitStream.cs
- PolygonHotSpot.cs
- DataPagerField.cs
- SqlException.cs
- Registry.cs
- TimeEnumHelper.cs
- InstanceData.cs
- QilCloneVisitor.cs
- DelimitedListTraceListener.cs
- WebBodyFormatMessageProperty.cs
- Header.cs
- SequentialWorkflowHeaderFooter.cs
- Claim.cs
- ResourcesBuildProvider.cs
- InsufficientMemoryException.cs
- SqlTypesSchemaImporter.cs
- TransformerInfoCollection.cs