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
- CellParaClient.cs
- RijndaelManagedTransform.cs
- RowToFieldTransformer.cs
- figurelengthconverter.cs
- ScrollItemPattern.cs
- WhitespaceReader.cs
- ScrollEvent.cs
- IfAction.cs
- LogicalChannel.cs
- EntityContainer.cs
- QilTypeChecker.cs
- WebPartDisplayModeCancelEventArgs.cs
- RegexNode.cs
- FilterQuery.cs
- SchemaConstraints.cs
- MatchingStyle.cs
- DataGridLinkButton.cs
- FixedFindEngine.cs
- CustomErrorCollection.cs
- StorageAssociationSetMapping.cs
- MailAddressCollection.cs
- EventlogProvider.cs
- DataTableTypeConverter.cs
- SqlColumnizer.cs
- UrlPropertyAttribute.cs
- NotifyParentPropertyAttribute.cs
- TransformGroup.cs
- DesignOnlyAttribute.cs
- CompareValidator.cs
- InvokeDelegate.cs
- FormViewPageEventArgs.cs
- OleDbDataReader.cs
- SQLInt64Storage.cs
- ProfileInfo.cs
- NumberFormatInfo.cs
- SqlDataSourceEnumerator.cs
- WindowsTitleBar.cs
- RoleGroup.cs
- GridItemCollection.cs
- RowSpanVector.cs
- StringDictionary.cs
- ListSourceHelper.cs
- RuntimeIdentifierPropertyAttribute.cs
- HeaderLabel.cs
- BooleanExpr.cs
- ReceiveMessageContent.cs
- OutputScopeManager.cs
- HttpChannelHelper.cs
- BidOverLoads.cs
- ResourceExpressionBuilder.cs
- ParameterElement.cs
- DataGridViewAccessibleObject.cs
- CommonObjectSecurity.cs
- UInt16Storage.cs
- TableHeaderCell.cs
- RepeaterCommandEventArgs.cs
- BuildResultCache.cs
- ParameterRetriever.cs
- HandlerFactoryWrapper.cs
- XmlAttributeOverrides.cs
- ParamArrayAttribute.cs
- Variant.cs
- MemberMaps.cs
- RadioButton.cs
- ACE.cs
- OpenTypeLayout.cs
- assertwrapper.cs
- TrackingLocationCollection.cs
- AdornedElementPlaceholder.cs
- Function.cs
- _NegoStream.cs
- PersonalizablePropertyEntry.cs
- TraceSwitch.cs
- ZipIOExtraFieldZip64Element.cs
- OutgoingWebRequestContext.cs
- SQLInt32.cs
- NavigateEvent.cs
- OuterGlowBitmapEffect.cs
- DataServiceRequestArgs.cs
- HwndStylusInputProvider.cs
- Int64Storage.cs
- HttpRequestCacheValidator.cs
- InputElement.cs
- AvTrace.cs
- ButtonChrome.cs
- AnnotationService.cs
- CodeTypeReference.cs
- WebPageTraceListener.cs
- SqlNotificationRequest.cs
- MD5CryptoServiceProvider.cs
- UnicastIPAddressInformationCollection.cs
- _SslStream.cs
- HostedHttpRequestAsyncResult.cs
- LOSFormatter.cs
- AnchoredBlock.cs
- SrgsRule.cs
- UndirectedGraph.cs
- ContentOperations.cs
- InputElement.cs
- EntityTemplateUserControl.cs