Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx35 / System.WorkflowServices / System / Workflow / Activities / ReceiveContext.cs / 1305376 / ReceiveContext.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Workflow.Activities { using System; using System.Collections; using System.Collections.Generic; using System.Collections.Specialized; using System.ComponentModel; using System.Diagnostics.CodeAnalysis; using System.ServiceModel; using System.Xml; using System.ServiceModel.Dispatcher; [Serializable] internal sealed class ReceiveContext { static string emptyGuid = Guid.Empty.ToString(); Guid contextId = Guid.Empty; bool initialized = false; bool isRootContext = false; string name = null; SerializableReadOnlyDictionaryproperties = null; string workflowId = emptyGuid; public ReceiveContext(string name, Guid workflowId, bool isRootContext) { this.name = name; this.workflowId = workflowId.ToString(); this.isRootContext = isRootContext; } [Browsable(false)] public bool Initialized { get { return this.initialized; } } [Browsable(false)] public string Name { get { return this.name; } } [Browsable(false)] internal SerializableReadOnlyDictionary Properties { get { return this.properties; } } public void EnsureInitialized(Guid contextId) { if (this.contextId != contextId) { this.initialized = false; this.contextId = contextId; } if (this.Initialized) { return; } if (!isRootContext) { this.properties = new SerializableReadOnlyDictionary ( new KeyValuePair (WellKnownContextProperties.InstanceId, workflowId), new KeyValuePair (WellKnownContextProperties.ConversationId, Guid.NewGuid().ToString())); } else { this.properties = new SerializableReadOnlyDictionary ( new KeyValuePair (WellKnownContextProperties.InstanceId, workflowId)); } this.initialized = true; } } } // 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
- CancellationHandler.cs
- UpdateException.cs
- AnimationLayer.cs
- X509SecurityToken.cs
- BaseTemplateCodeDomTreeGenerator.cs
- TreeViewImageKeyConverter.cs
- DelegateArgumentValue.cs
- DataObjectFieldAttribute.cs
- DetailsViewUpdatedEventArgs.cs
- WindowsFormsSectionHandler.cs
- HebrewNumber.cs
- CodeNamespaceImport.cs
- SecurityTokenInclusionMode.cs
- CharacterBufferReference.cs
- ExternalCalls.cs
- LiteralSubsegment.cs
- AsymmetricKeyExchangeDeformatter.cs
- WindowsListViewSubItem.cs
- FunctionMappingTranslator.cs
- TextPattern.cs
- HtmlMobileTextWriter.cs
- X509WindowsSecurityToken.cs
- CodeFieldReferenceExpression.cs
- LazyTextWriterCreator.cs
- PEFileEvidenceFactory.cs
- WebPartUserCapability.cs
- QueryOperator.cs
- SqlInternalConnectionTds.cs
- GrammarBuilderBase.cs
- _NetworkingPerfCounters.cs
- TraceFilter.cs
- ActiveXContainer.cs
- Hyperlink.cs
- ContainerFilterService.cs
- Parsers.cs
- HostProtectionPermission.cs
- SQLBoolean.cs
- HtmlLinkAdapter.cs
- OptionUsage.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- xsdvalidator.cs
- ArrayElementGridEntry.cs
- BamlMapTable.cs
- SafeRightsManagementQueryHandle.cs
- GroupPartitionExpr.cs
- UserUseLicenseDictionaryLoader.cs
- InternalRelationshipCollection.cs
- ThreadPool.cs
- StickyNoteAnnotations.cs
- FlowchartDesignerCommands.cs
- ConfigPathUtility.cs
- XPathNodeIterator.cs
- DataGridViewButtonColumn.cs
- NotCondition.cs
- OracleColumn.cs
- PlainXmlWriter.cs
- ElementInit.cs
- TdsParser.cs
- XXXInfos.cs
- CompilerGlobalScopeAttribute.cs
- OracleCommandSet.cs
- RequestBringIntoViewEventArgs.cs
- XmlnsDictionary.cs
- PrintDialog.cs
- DispatcherTimer.cs
- CommonObjectSecurity.cs
- IISUnsafeMethods.cs
- NativeWrapper.cs
- SqlProvider.cs
- HMACSHA256.cs
- UIElementCollection.cs
- SqlBuilder.cs
- PopOutPanel.cs
- ObjectTokenCategory.cs
- WeakReferenceEnumerator.cs
- XmlSchemaSimpleContent.cs
- TextFragmentEngine.cs
- CoreSwitches.cs
- Process.cs
- ItemChangedEventArgs.cs
- DiscreteKeyFrames.cs
- ContainerAction.cs
- TypefaceMap.cs
- TextHidden.cs
- BezierSegment.cs
- UnauthorizedAccessException.cs
- PrintDocument.cs
- XmlWrappingReader.cs
- Contracts.cs
- TrustManagerPromptUI.cs
- BuildProvider.cs
- WebPartActionVerb.cs
- GestureRecognitionResult.cs
- MobileControlPersister.cs
- DateTimeSerializationSection.cs
- Contracts.cs
- OleDbRowUpdatedEvent.cs
- ListBoxAutomationPeer.cs
- CompModSwitches.cs
- AutoResetEvent.cs