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
- BasicExpressionVisitor.cs
- FileDialog_Vista.cs
- Rect3D.cs
- EndpointDiscoveryMetadataCD1.cs
- OutOfMemoryException.cs
- UnicastIPAddressInformationCollection.cs
- ColumnBinding.cs
- ControlBuilderAttribute.cs
- QuotedPrintableStream.cs
- EventHandlingScope.cs
- WebException.cs
- HttpApplicationFactory.cs
- FormattedText.cs
- ServiceOperationWrapper.cs
- TagMapInfo.cs
- CompareValidator.cs
- ShaderEffect.cs
- DataGridRelationshipRow.cs
- PanelContainerDesigner.cs
- SchemaElementDecl.cs
- TextFormatter.cs
- localization.cs
- InputBuffer.cs
- dbenumerator.cs
- Triangle.cs
- FixedSOMSemanticBox.cs
- CodeSubDirectoriesCollection.cs
- AsyncStreamReader.cs
- SymLanguageType.cs
- StringSorter.cs
- EnumValidator.cs
- ObjectIDGenerator.cs
- BamlRecordHelper.cs
- MailWriter.cs
- ActivityTypeResolver.xaml.cs
- AssociationEndMember.cs
- RewritingValidator.cs
- MessageDecoder.cs
- Int32Converter.cs
- ParameterBuilder.cs
- SoundPlayerAction.cs
- WindowsUpDown.cs
- ComponentResourceManager.cs
- UserControlParser.cs
- TypeForwardedToAttribute.cs
- XamlStyleSerializer.cs
- DataMemberConverter.cs
- _KerberosClient.cs
- GatewayIPAddressInformationCollection.cs
- ObjectDataSource.cs
- CodeMethodMap.cs
- FormattedText.cs
- ObjectResult.cs
- BrowsableAttribute.cs
- DbProviderManifest.cs
- Base64Encoding.cs
- SchemaElement.cs
- StrokeIntersection.cs
- SelectorAutomationPeer.cs
- ColumnProvider.cs
- InkSerializer.cs
- MinimizableAttributeTypeConverter.cs
- ClientEventManager.cs
- DetailsViewUpdatedEventArgs.cs
- BufferedOutputStream.cs
- AliasGenerator.cs
- XmlBindingWorker.cs
- Line.cs
- IpcChannelHelper.cs
- CatalogZoneBase.cs
- Int64KeyFrameCollection.cs
- XmlAnyElementAttributes.cs
- DictionarySectionHandler.cs
- ToolStripDropTargetManager.cs
- EntityDataSourceColumn.cs
- TextEncodedRawTextWriter.cs
- DataGridViewMethods.cs
- AsymmetricSignatureDeformatter.cs
- NotFiniteNumberException.cs
- Menu.cs
- XPathItem.cs
- CalendarData.cs
- SizeFConverter.cs
- DateRangeEvent.cs
- OperationFormatter.cs
- AppendHelper.cs
- WebAdminConfigurationHelper.cs
- TypeContext.cs
- ToolStripMenuItemCodeDomSerializer.cs
- EncryptedData.cs
- TextureBrush.cs
- ServerValidateEventArgs.cs
- AssemblyName.cs
- StrongNameSignatureInformation.cs
- _DomainName.cs
- AlphaSortedEnumConverter.cs
- CodeTypeReference.cs
- GenericAuthenticationEventArgs.cs
- AssemblyCache.cs
- Barrier.cs