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
- FamilyMapCollection.cs
- LayoutUtils.cs
- LinqDataSourceValidationException.cs
- CodeIdentifier.cs
- MapPathBasedVirtualPathProvider.cs
- WebBrowsableAttribute.cs
- FormView.cs
- XPathDocument.cs
- List.cs
- ScheduleChanges.cs
- ConfigUtil.cs
- ViewManager.cs
- GenericUriParser.cs
- SqlComparer.cs
- MouseGestureValueSerializer.cs
- BulletedListEventArgs.cs
- PropertyConverter.cs
- ArrangedElement.cs
- ScriptControlManager.cs
- Pen.cs
- BoolExpression.cs
- RuleInfoComparer.cs
- TimeoutException.cs
- WebServiceBindingAttribute.cs
- AppLevelCompilationSectionCache.cs
- ColorConvertedBitmap.cs
- DiscoveryDocumentReference.cs
- SystemNetHelpers.cs
- DESCryptoServiceProvider.cs
- ExpandedWrapper.cs
- Typeface.cs
- SubstitutionList.cs
- NonParentingControl.cs
- JournalEntry.cs
- Int64KeyFrameCollection.cs
- XmlValidatingReaderImpl.cs
- FlowNode.cs
- TypeConverterHelper.cs
- WebPartConnection.cs
- ListCollectionView.cs
- infer.cs
- FilterEventArgs.cs
- InfoCardSymmetricAlgorithm.cs
- _BaseOverlappedAsyncResult.cs
- DataGridViewCellCollection.cs
- DataTableReaderListener.cs
- EventProviderClassic.cs
- DataContractSet.cs
- DebugView.cs
- CreateWorkflowOwnerCommand.cs
- WebPartZoneBase.cs
- SafeProcessHandle.cs
- LocalizabilityAttribute.cs
- Message.cs
- SqlDependencyUtils.cs
- SignatureToken.cs
- Queue.cs
- ResourceManagerWrapper.cs
- SafeProcessHandle.cs
- StringPropertyBuilder.cs
- TableSectionStyle.cs
- StringResourceManager.cs
- ToolbarAUtomationPeer.cs
- RotateTransform.cs
- SuppressIldasmAttribute.cs
- SetIndexBinder.cs
- TransactedReceiveData.cs
- hresults.cs
- SystemIPAddressInformation.cs
- PropertyGroupDescription.cs
- QueryReaderSettings.cs
- WebMethodAttribute.cs
- TimelineCollection.cs
- Stack.cs
- PerformanceCounterCategory.cs
- XmlCountingReader.cs
- ChtmlSelectionListAdapter.cs
- ResourcePool.cs
- MarkupProperty.cs
- PageContent.cs
- CacheVirtualItemsEvent.cs
- TraceSource.cs
- PDBReader.cs
- XmlIlTypeHelper.cs
- HwndProxyElementProvider.cs
- DeviceSpecific.cs
- ModuleBuilderData.cs
- ApplicationSecurityManager.cs
- odbcmetadatacollectionnames.cs
- DesignConnection.cs
- FontNamesConverter.cs
- QueryTreeBuilder.cs
- DecoderBestFitFallback.cs
- DecimalAnimationBase.cs
- ControlIdConverter.cs
- GridViewSortEventArgs.cs
- ReadOnlyHierarchicalDataSourceView.cs
- XmlUnspecifiedAttribute.cs
- IriParsingElement.cs
- ApplicationServiceManager.cs