Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Transactions / WsatTransactionInfo.cs / 1 / WsatTransactionInfo.cs
//------------------------------------------------------------
// Copyright (c) Microsoft Corporation. All rights reserved.
//-----------------------------------------------------------
namespace System.ServiceModel.Transactions
{
using System.ServiceModel.Security;
using System.Transactions;
using Microsoft.Transactions.Wsat.Messaging;
class WsatTransactionInfo : TransactionInfo
{
WsatProxy wsatProxy;
CoordinationContext context;
RequestSecurityTokenResponse issuedToken;
public WsatTransactionInfo(WsatProxy wsatProxy,
CoordinationContext context,
RequestSecurityTokenResponse issuedToken)
{
this.wsatProxy = wsatProxy;
this.context = context;
this.issuedToken = issuedToken;
}
public override Transaction UnmarshalTransaction()
{
Transaction tx;
if (WsatIncomingTransactionCache.Find(this.context.Identifier, out tx))
return tx;
tx = this.wsatProxy.UnmarshalTransaction(this);
// Cache extended information for subsequent marshal operations
WsatExtendedInformation info = new WsatExtendedInformation(context.Identifier, context.Expires);
info.TryCache(tx);
// Cache the unmarshalled transaction for subsequent unmarshal operations
WsatIncomingTransactionCache.Cache(this.context.Identifier, tx);
return tx;
}
public CoordinationContext Context
{
get { return this.context; }
}
public RequestSecurityTokenResponse IssuedToken
{
get { return this.issuedToken; }
}
}
}
// 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
- SqlDataSourceCommandEventArgs.cs
- EmptyReadOnlyDictionaryInternal.cs
- WebPartZoneBase.cs
- Variant.cs
- ListMarkerLine.cs
- DateTimeOffsetStorage.cs
- DropShadowBitmapEffect.cs
- TextParaLineResult.cs
- XPathNavigatorReader.cs
- MessageTransmitTraceRecord.cs
- CharEntityEncoderFallback.cs
- CodeEventReferenceExpression.cs
- DecimalAverageAggregationOperator.cs
- Ipv6Element.cs
- ConnectorSelectionGlyph.cs
- TabControl.cs
- BaseCodeDomTreeGenerator.cs
- CompiledQuery.cs
- StopStoryboard.cs
- DataColumnMapping.cs
- XmlLanguageConverter.cs
- cookie.cs
- Path.cs
- CompositeScriptReference.cs
- InputScopeConverter.cs
- ConfigurationManagerInternal.cs
- LogRecordSequence.cs
- DataGridCommandEventArgs.cs
- ApplicationBuildProvider.cs
- ByteBufferPool.cs
- ExpressionBindingCollection.cs
- DataGridViewCell.cs
- SafeNativeMethodsCLR.cs
- WindowsStatic.cs
- CharEntityEncoderFallback.cs
- ComponentChangedEvent.cs
- NotificationContext.cs
- AnnotationResourceCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- TextTreeText.cs
- UserUseLicenseDictionaryLoader.cs
- LambdaReference.cs
- KeyValuePairs.cs
- XmlTextAttribute.cs
- ContentType.cs
- LineUtil.cs
- ParameterElementCollection.cs
- TraceUtility.cs
- RoutingTable.cs
- HostAdapter.cs
- WebColorConverter.cs
- WebPartCatalogCloseVerb.cs
- StorageEntityContainerMapping.cs
- EdmFunction.cs
- EpmSourcePathSegment.cs
- PopOutPanel.cs
- DataGridDetailsPresenter.cs
- SqlDataReaderSmi.cs
- Merger.cs
- ByteStreamGeometryContext.cs
- BuildProvider.cs
- WorkflowInstance.cs
- PropertyToken.cs
- Events.cs
- RoleGroup.cs
- InvalidFilterCriteriaException.cs
- UpdateTracker.cs
- LeaseManager.cs
- Number.cs
- RawStylusActions.cs
- FormParameter.cs
- SemanticAnalyzer.cs
- DbBuffer.cs
- AssemblyUtil.cs
- MasterPageParser.cs
- SmiContext.cs
- DataControlLinkButton.cs
- TimeZoneInfo.cs
- ControlPaint.cs
- SecurityUtils.cs
- ImplicitInputBrush.cs
- SamlDelegatingWriter.cs
- SelectionUIHandler.cs
- HttpWebRequest.cs
- Operator.cs
- ViewStateException.cs
- KnownBoxes.cs
- TableRow.cs
- Common.cs
- StringFormat.cs
- VisualBasicSettings.cs
- RepeatBehavior.cs
- SingleAnimationUsingKeyFrames.cs
- TransactionProtocolConverter.cs
- ContextProperty.cs
- HWStack.cs
- HttpServerVarsCollection.cs
- PrePostDescendentsWalker.cs
- WebPartHelpVerb.cs
- CollectionChangeEventArgs.cs