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
- JumpTask.cs
- PhotoPrintingIntent.cs
- SurrogateEncoder.cs
- PersonalizationAdministration.cs
- EmbossBitmapEffect.cs
- RoleGroup.cs
- PartitionedStreamMerger.cs
- RemotingException.cs
- CanonicalXml.cs
- ChangeInterceptorAttribute.cs
- BindingList.cs
- SQLInt32Storage.cs
- FontStretches.cs
- CngAlgorithm.cs
- oledbconnectionstring.cs
- HttpHostedTransportConfiguration.cs
- RecognizerBase.cs
- HttpCapabilitiesBase.cs
- ThousandthOfEmRealDoubles.cs
- AuthenticationServiceManager.cs
- TypeValidationEventArgs.cs
- CollectionChangeEventArgs.cs
- WsdlBuildProvider.cs
- MetadataArtifactLoaderResource.cs
- _TLSstream.cs
- EntityDataSourceView.cs
- ArgIterator.cs
- Thickness.cs
- AutomationElementCollection.cs
- SizeConverter.cs
- WebPartManagerInternals.cs
- DashStyle.cs
- JsonReader.cs
- EnumerableRowCollectionExtensions.cs
- SchemaMapping.cs
- GPRECT.cs
- PagesSection.cs
- Span.cs
- SecurityKeyIdentifierClause.cs
- Int64Animation.cs
- CodeDelegateInvokeExpression.cs
- BypassElement.cs
- VirtualizingStackPanel.cs
- LogEntryHeaderDeserializer.cs
- ProtectedConfigurationSection.cs
- StorageAssociationTypeMapping.cs
- CustomCredentialPolicy.cs
- Internal.cs
- hresults.cs
- DataGridViewRowCollection.cs
- StateManagedCollection.cs
- SplineKeyFrames.cs
- FilterableAttribute.cs
- BinaryUtilClasses.cs
- HTTP_SERVICE_CONFIG_URLACL_PARAM.cs
- ParameterCollection.cs
- TableParagraph.cs
- PrintDialogException.cs
- XmlCharType.cs
- ItemsChangedEventArgs.cs
- EntityDataSourceReferenceGroup.cs
- CodeGotoStatement.cs
- CorePropertiesFilter.cs
- SynchronizationScope.cs
- Formatter.cs
- StoreContentChangedEventArgs.cs
- XmlSerializerAssemblyAttribute.cs
- CodeTypeReference.cs
- SoapTypeAttribute.cs
- FormViewUpdateEventArgs.cs
- manifestimages.cs
- Walker.cs
- XMLUtil.cs
- SeparatorAutomationPeer.cs
- EditingCommands.cs
- DateRangeEvent.cs
- SecurityListenerSettingsLifetimeManager.cs
- _AutoWebProxyScriptEngine.cs
- __Filters.cs
- TabItemAutomationPeer.cs
- Stacktrace.cs
- CustomAttribute.cs
- ProxyWebPart.cs
- OuterGlowBitmapEffect.cs
- ThreadTrace.cs
- GenericTextProperties.cs
- XhtmlBasicObjectListAdapter.cs
- CodeSnippetStatement.cs
- SecurityException.cs
- EntityTypeBase.cs
- Bits.cs
- WebPartEventArgs.cs
- _DomainName.cs
- HttpModulesInstallComponent.cs
- NameValueFileSectionHandler.cs
- WebSysDescriptionAttribute.cs
- MethodAccessException.cs
- GrammarBuilderWildcard.cs
- RelatedImageListAttribute.cs
- SafeReversePInvokeHandle.cs