Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / WF / RunTime / WorkflowEnvironment.cs / 1305376 / WorkflowEnvironment.cs
#pragma warning disable 1634, 1691 using System; using System.Collections; using System.Workflow.ComponentModel; using System.Workflow.Runtime; using System.Diagnostics; using System.Transactions; namespace System.Workflow.Runtime { public static class WorkflowEnvironment /*: IDisposable*/ { public static IWorkBatch WorkBatch { get { IWorkBatch currentBatch = ServiceEnvironment.WorkBatch; #pragma warning disable 56503 if (currentBatch == null) throw new System.InvalidOperationException(ExecutionStringManager.WorkBatchNotFound); #pragma warning restore 56503 return currentBatch; } } public static Guid WorkflowInstanceId { get { #pragma warning disable 56503 Guid currentInstanceId = ServiceEnvironment.WorkflowInstanceId; if (currentInstanceId == Guid.Empty) throw new System.InvalidOperationException(ExecutionStringManager.InstanceIDNotFound); #pragma warning restore 56503 return currentInstanceId; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DataServiceRequest.cs
- DialogWindow.cs
- Cursors.cs
- ImageMap.cs
- IndexerNameAttribute.cs
- EdmError.cs
- Operand.cs
- SupportsEventValidationAttribute.cs
- NativeMethods.cs
- __ComObject.cs
- ExpressionEvaluator.cs
- PropertyDescriptorCollection.cs
- PathSegmentCollection.cs
- TextTreeText.cs
- CheckBoxPopupAdapter.cs
- ItemMap.cs
- LightweightEntityWrapper.cs
- SecUtil.cs
- BevelBitmapEffect.cs
- SafeNativeMemoryHandle.cs
- DatagridviewDisplayedBandsData.cs
- EvidenceBase.cs
- TreeNodeCollectionEditor.cs
- Debug.cs
- AtomServiceDocumentSerializer.cs
- OptimalTextSource.cs
- NTAccount.cs
- PostBackOptions.cs
- Point3DAnimationUsingKeyFrames.cs
- Perspective.cs
- SQLInt16Storage.cs
- SpAudioStreamWrapper.cs
- XPathNodeInfoAtom.cs
- BufferBuilder.cs
- ContextStack.cs
- TextChange.cs
- CompilerGeneratedAttribute.cs
- ComplexType.cs
- OleDbErrorCollection.cs
- DataGrid.cs
- IPHostEntry.cs
- AnchoredBlock.cs
- TreeNodeStyleCollection.cs
- LabelLiteral.cs
- TagPrefixCollection.cs
- ModulesEntry.cs
- PerformanceCountersElement.cs
- DockProviderWrapper.cs
- FullTrustAssembly.cs
- OleDbFactory.cs
- XhtmlCssHandler.cs
- BitmapPalettes.cs
- HttpRuntimeSection.cs
- MetadataArtifactLoaderResource.cs
- InfoCardTraceRecord.cs
- HtmlSelect.cs
- DataGridViewRowsRemovedEventArgs.cs
- CodeDomExtensionMethods.cs
- DiagnosticsConfiguration.cs
- Image.cs
- SerializationFieldInfo.cs
- HierarchicalDataSourceControl.cs
- NamespaceTable.cs
- MsmqIntegrationProcessProtocolHandler.cs
- HttpResponseHeader.cs
- TopClause.cs
- DiscardableAttribute.cs
- ListBox.cs
- CodeDomComponentSerializationService.cs
- SqlTriggerAttribute.cs
- DebugViewWriter.cs
- ClaimTypes.cs
- ClientConvert.cs
- ActivityDesignerHighlighter.cs
- StateRuntime.cs
- TableLayoutRowStyleCollection.cs
- ConditionalWeakTable.cs
- controlskin.cs
- Overlapped.cs
- EventPropertyMap.cs
- basenumberconverter.cs
- ToolZoneDesigner.cs
- DataGridState.cs
- RelationshipType.cs
- TableItemProviderWrapper.cs
- SqlDataSourceFilteringEventArgs.cs
- Interlocked.cs
- DataGridViewRowStateChangedEventArgs.cs
- SQLInt64Storage.cs
- AbstractDataSvcMapFileLoader.cs
- StrongNameKeyPair.cs
- MessageDescriptionCollection.cs
- HexParser.cs
- EntityClientCacheEntry.cs
- MappingMetadataHelper.cs
- DropTarget.cs
- SqlGenerator.cs
- SelectionUIHandler.cs
- ListCardsInFileRequest.cs
- ExpandCollapsePatternIdentifiers.cs