Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / TransactionBridge / Microsoft / Transactions / Wsat / Protocol / TransactionContextManager.cs / 1 / TransactionContextManager.cs
//------------------------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------------------------- // This file contains the enlistment type for the TransactionContext state machine // It isn't really an enlistment in the PPL sense, but it behaves a lot like one. // // This class holds all the state associated with a TransactionContext state machine. // That means the actual TransactionContext (when we have one), the queue of // active CCC w/ context requests, the right fault to send back if we fail, etc. using System; using System.Collections.Generic; using System.Diagnostics; using Microsoft.Transactions.Wsat.Messaging; using Microsoft.Transactions.Wsat.StateMachines; namespace Microsoft.Transactions.Wsat.Protocol { class TransactionContextManager : TransactionEnlistment { string identifier; TransactionContext context; Fault fault; Queuerequests; public TransactionContextManager(ProtocolState state, string identifier) : base(state) { this.identifier = identifier; this.requests = new Queue (); this.stateMachine = new TransactionContextStateMachine(this); this.stateMachine.ChangeState(state.States.TransactionContextInitializing); } public string Identifier { get { return this.identifier; } } public TransactionContext TransactionContext { get { return this.context; } set { this.context = value; } } public Fault Fault { get { // Default to 'cannot create context' fault if (this.fault == null) return this.state.Faults.CannotCreateContext; return this.fault; } set { Debug.Assert(this.fault == null && value != null, "Cannot clobber or set fault to null"); this.fault = value; } } public Queue Requests { get { return this.requests; } } public override void OnStateMachineComplete() { state.Lookup.RemoveTransactionContextManager(this); } } } // 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
- WebPermission.cs
- WriteableOnDemandPackagePart.cs
- TextDpi.cs
- ReadOnlyDataSource.cs
- CalculatedColumn.cs
- RegexCaptureCollection.cs
- RegexTree.cs
- ChangeConflicts.cs
- CancellationTokenSource.cs
- Win32.cs
- HyperlinkAutomationPeer.cs
- CopyNodeSetAction.cs
- SQLInt16.cs
- Regex.cs
- EventHandlerList.cs
- CodeIndexerExpression.cs
- ADRoleFactoryConfiguration.cs
- DataMember.cs
- CryptoHandle.cs
- ProxyManager.cs
- HtmlTableCellCollection.cs
- RenderTargetBitmap.cs
- LoginUtil.cs
- BufferedStream2.cs
- ImageMetadata.cs
- OperationFormatter.cs
- SplitContainerDesigner.cs
- Interlocked.cs
- Function.cs
- PropertyStore.cs
- GeometryHitTestResult.cs
- AttributeParameterInfo.cs
- PrincipalPermission.cs
- AstTree.cs
- HtmlUtf8RawTextWriter.cs
- Contracts.cs
- WinEventQueueItem.cs
- AsyncOperationContext.cs
- HostingEnvironmentException.cs
- IisTraceWebEventProvider.cs
- AutomationElement.cs
- BoundField.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- ViewDesigner.cs
- ArgumentReference.cs
- Translator.cs
- RangeBaseAutomationPeer.cs
- VideoDrawing.cs
- PrintingPermission.cs
- CodeTypeOfExpression.cs
- ImageInfo.cs
- WebPartConnectionsConfigureVerb.cs
- WhileDesigner.cs
- RowBinding.cs
- dataSvcMapFileLoader.cs
- SystemInformation.cs
- PerspectiveCamera.cs
- TextTreeText.cs
- PartManifestEntry.cs
- ZipIOExtraField.cs
- GenerateDerivedKeyRequest.cs
- WSSecurityOneDotZeroReceiveSecurityHeader.cs
- AbandonedMutexException.cs
- AppearanceEditorPart.cs
- TransactionContext.cs
- ConstructorNeedsTagAttribute.cs
- PanelDesigner.cs
- TileModeValidation.cs
- OneToOneMappingSerializer.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- AutomationAttributeInfo.cs
- SecUtil.cs
- DataGridViewRowPostPaintEventArgs.cs
- SvcMapFileSerializer.cs
- Wildcard.cs
- DataSourceCache.cs
- ResumeStoryboard.cs
- LinkAreaEditor.cs
- SuppressMessageAttribute.cs
- mongolianshape.cs
- CharacterString.cs
- MetadataItemEmitter.cs
- HttpConfigurationContext.cs
- WebPartTransformerAttribute.cs
- Int64AnimationUsingKeyFrames.cs
- DocumentStream.cs
- ClonableStack.cs
- RegexTree.cs
- RegexRunner.cs
- SchemaElementLookUpTable.cs
- MulticastDelegate.cs
- MetadataProperty.cs
- PiiTraceSource.cs
- DataStreamFromComStream.cs
- OperandQuery.cs
- ColumnHeaderConverter.cs
- DbDeleteCommandTree.cs
- StyleCollection.cs
- WindowsScrollBar.cs
- TextReader.cs