Code:
/ 4.0 / 4.0 / 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. #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
- ComPlusServiceLoader.cs
- TraceFilter.cs
- Delay.cs
- PointConverter.cs
- OdbcParameter.cs
- XamlToRtfParser.cs
- SqlServices.cs
- SmtpCommands.cs
- InputProviderSite.cs
- ObjectDataSourceEventArgs.cs
- RectConverter.cs
- baseaxisquery.cs
- _AcceptOverlappedAsyncResult.cs
- BuildProvider.cs
- SSmlParser.cs
- DesignTimeParseData.cs
- input.cs
- MailBnfHelper.cs
- SplashScreen.cs
- ListViewUpdatedEventArgs.cs
- AlignmentXValidation.cs
- RegexCode.cs
- WSHttpSecurity.cs
- CompressionTransform.cs
- IgnoreSectionHandler.cs
- UnsignedPublishLicense.cs
- SmtpNtlmAuthenticationModule.cs
- ControlValuePropertyAttribute.cs
- WindowsSolidBrush.cs
- panel.cs
- GlobalizationAssembly.cs
- QilNode.cs
- TimelineClockCollection.cs
- XamlStream.cs
- TemplateBamlTreeBuilder.cs
- Environment.cs
- RTLAwareMessageBox.cs
- XmlQualifiedName.cs
- DynamicActionMessageFilter.cs
- RuntimeConfig.cs
- SqlBulkCopyColumnMapping.cs
- UnsignedPublishLicense.cs
- SchemaImporterExtensionElement.cs
- ElementsClipboardData.cs
- TargetControlTypeAttribute.cs
- CookielessHelper.cs
- SqlXml.cs
- SchemaAttDef.cs
- LogLogRecordEnumerator.cs
- AnimationTimeline.cs
- StringFunctions.cs
- SessionStateSection.cs
- InkCanvasInnerCanvas.cs
- RadioButton.cs
- SafeHandle.cs
- SocketException.cs
- StyleSelector.cs
- TextReader.cs
- RequestQueryProcessor.cs
- IdentityReference.cs
- Button.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlAggregates.cs
- XsdBuilder.cs
- webproxy.cs
- SecurityKeyIdentifier.cs
- HostUtils.cs
- MenuItemAutomationPeer.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- CoreChannel.cs
- DataGridViewTextBoxColumn.cs
- CounterNameConverter.cs
- Transform3D.cs
- ServiceOperationInvoker.cs
- StringInfo.cs
- Selection.cs
- MimeMapping.cs
- CustomPopupPlacement.cs
- TrueReadOnlyCollection.cs
- RequestDescription.cs
- CaseStatementSlot.cs
- DataBinder.cs
- CultureInfoConverter.cs
- EntryPointNotFoundException.cs
- SurrogateSelector.cs
- ConcurrencyMode.cs
- PublisherIdentityPermission.cs
- ProcessInfo.cs
- LambdaCompiler.ControlFlow.cs
- DataControlFieldCollection.cs
- MsmqDecodeHelper.cs
- Int32Rect.cs
- WsatServiceAddress.cs
- HttpConfigurationSystem.cs
- SmtpNetworkElement.cs
- ScriptDescriptor.cs
- ResXBuildProvider.cs
- DataGridColumnCollection.cs
- ColumnWidthChangedEvent.cs
- Int32Rect.cs