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
- ZipIOZip64EndOfCentralDirectoryLocatorBlock.cs
- LinkConverter.cs
- _HeaderInfoTable.cs
- Point3DAnimation.cs
- FillRuleValidation.cs
- GifBitmapDecoder.cs
- DependencyPropertyAttribute.cs
- XPathNodePointer.cs
- XmlImplementation.cs
- MobileCategoryAttribute.cs
- EpmTargetPathSegment.cs
- ElementFactory.cs
- SimpleNameService.cs
- WebPartManager.cs
- IdentityHolder.cs
- Util.cs
- TemplateControlCodeDomTreeGenerator.cs
- IERequestCache.cs
- XmlSerializationReader.cs
- SqlStatistics.cs
- XhtmlBasicTextViewAdapter.cs
- NonVisualControlAttribute.cs
- PropagationProtocolsTracing.cs
- DockPatternIdentifiers.cs
- OpCellTreeNode.cs
- HostingEnvironmentWrapper.cs
- LinqDataSourceContextEventArgs.cs
- CodeTypeParameter.cs
- MatchNoneMessageFilter.cs
- Column.cs
- PhoneCallDesigner.cs
- ExtendedPropertiesHandler.cs
- PolicyStatement.cs
- MaskedTextBox.cs
- TemplateKey.cs
- MessageFilter.cs
- OleDbDataAdapter.cs
- RankException.cs
- LineUtil.cs
- FileDialog.cs
- columnmapkeybuilder.cs
- DataStreams.cs
- DelegatingConfigHost.cs
- RegisteredExpandoAttribute.cs
- MaskedTextBoxTextEditor.cs
- CodeTypeReferenceExpression.cs
- SchemaNotation.cs
- XPathException.cs
- AssertSection.cs
- ScriptingSectionGroup.cs
- EndEvent.cs
- MultiPageTextView.cs
- ErasingStroke.cs
- XPathDocumentIterator.cs
- Config.cs
- XmlObjectSerializerReadContextComplex.cs
- CellLabel.cs
- DocumentApplicationJournalEntry.cs
- LambdaCompiler.Generated.cs
- Menu.cs
- DbgUtil.cs
- GraphicsContainer.cs
- ReadOnlyCollectionBase.cs
- XmlTextReaderImplHelpers.cs
- ChangePassword.cs
- commandenforcer.cs
- XmlSchemaType.cs
- XmlEncoding.cs
- WeakHashtable.cs
- DataGridColumnCollection.cs
- CutCopyPasteHelper.cs
- SafeFileHandle.cs
- StringToken.cs
- DeclaredTypeElementCollection.cs
- EncodingDataItem.cs
- DataList.cs
- AttachedPropertyBrowsableWhenAttributePresentAttribute.cs
- RightsManagementInformation.cs
- UpdatePanelTriggerCollection.cs
- CapabilitiesState.cs
- DataRelationCollection.cs
- MachineKeySection.cs
- PublisherIdentityPermission.cs
- BitVector32.cs
- SqlSupersetValidator.cs
- HwndHost.cs
- SwitchElementsCollection.cs
- SqlParameterCollection.cs
- ComponentEvent.cs
- ItemAutomationPeer.cs
- InvokePattern.cs
- ConfigurationManagerHelper.cs
- MessageBox.cs
- SqlTypesSchemaImporter.cs
- Oid.cs
- SessionEndingEventArgs.cs
- DataControlLinkButton.cs
- StylusCollection.cs
- Identity.cs
- WindowsGraphics.cs