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
- SqlGenerator.cs
- InstanceDescriptor.cs
- StretchValidation.cs
- EndOfStreamException.cs
- CellLabel.cs
- PermissionSet.cs
- ConfigurationPropertyCollection.cs
- CacheSection.cs
- remotingproxy.cs
- CellLabel.cs
- IPPacketInformation.cs
- TransformGroup.cs
- XmlEnumAttribute.cs
- DrawListViewSubItemEventArgs.cs
- ZipIOExtraFieldZip64Element.cs
- DataGridAddNewRow.cs
- StateMachineExecutionState.cs
- AppDomainShutdownMonitor.cs
- DbTransaction.cs
- PolyLineSegment.cs
- DataPagerField.cs
- HttpTransportElement.cs
- TextModifier.cs
- NavigationPropertyEmitter.cs
- WorkflowRuntimeServicesBehavior.cs
- NativeMethods.cs
- LayoutTable.cs
- ServerValidateEventArgs.cs
- OracleSqlParser.cs
- WebServiceMethodData.cs
- TcpProcessProtocolHandler.cs
- ScriptingScriptResourceHandlerSection.cs
- MetadataCollection.cs
- AsyncContentLoadedEventArgs.cs
- DataGridViewRowsRemovedEventArgs.cs
- XmlNamespaceDeclarationsAttribute.cs
- TransformerInfo.cs
- ParameterRetriever.cs
- PeerName.cs
- CommonProperties.cs
- SHA256Managed.cs
- SessionPageStatePersister.cs
- RegionData.cs
- CapabilitiesUse.cs
- OptimizedTemplateContentHelper.cs
- ByteKeyFrameCollection.cs
- RepeaterItem.cs
- ProxyManager.cs
- ListSortDescriptionCollection.cs
- RoutedCommand.cs
- Listbox.cs
- ValidateNames.cs
- DataGridItemEventArgs.cs
- MemberRelationshipService.cs
- WebPartZoneBase.cs
- StateRuntime.cs
- PointValueSerializer.cs
- XmlWriterDelegator.cs
- NavigationEventArgs.cs
- CommentAction.cs
- WSSecurityPolicy11.cs
- VirtualizingStackPanel.cs
- ToolboxDataAttribute.cs
- ValueExpressions.cs
- WorkflowMessageEventHandler.cs
- ResponseBodyWriter.cs
- DocumentViewerConstants.cs
- XmlSignatureManifest.cs
- BulletedList.cs
- ProfileParameter.cs
- TableMethodGenerator.cs
- SqlUtil.cs
- XmlSchemaObjectCollection.cs
- thaishape.cs
- ObjectItemCollection.cs
- WindowsRichEdit.cs
- WriterOutput.cs
- StructuredTypeInfo.cs
- SqlXml.cs
- Popup.cs
- OperatingSystem.cs
- ListViewInsertedEventArgs.cs
- MemoryRecordBuffer.cs
- VariantWrapper.cs
- Point.cs
- FragmentQueryProcessor.cs
- HostingPreferredMapPath.cs
- diagnosticsswitches.cs
- FacetDescription.cs
- XmlArrayAttribute.cs
- PropertyChangeTracker.cs
- AsyncCompletedEventArgs.cs
- ImageSourceConverter.cs
- ListBindingConverter.cs
- TypeSystem.cs
- TransactionsSectionGroup.cs
- GZipDecoder.cs
- Wizard.cs
- DecoderExceptionFallback.cs
- TableSectionStyle.cs