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
- ListBox.cs
- VerbConverter.cs
- cookiecontainer.cs
- LineSegment.cs
- SafePEFileHandle.cs
- PeerApplicationLaunchInfo.cs
- ProcessHost.cs
- ComponentCommands.cs
- LinqDataSource.cs
- AsyncCompletedEventArgs.cs
- PerfService.cs
- FixedSOMPage.cs
- OleCmdHelper.cs
- SourceFilter.cs
- BindingCompleteEventArgs.cs
- SafeRegistryKey.cs
- AssemblyBuilderData.cs
- Compiler.cs
- RelationalExpressions.cs
- URLAttribute.cs
- BaseConfigurationRecord.cs
- Color.cs
- TextCompositionEventArgs.cs
- UnmanagedBitmapWrapper.cs
- RoutingEndpointTrait.cs
- HtmlInputRadioButton.cs
- TypeGeneratedEventArgs.cs
- Asn1IntegerConverter.cs
- UnconditionalPolicy.cs
- _WinHttpWebProxyDataBuilder.cs
- __Filters.cs
- RIPEMD160Managed.cs
- DispatcherEventArgs.cs
- HttpConfigurationSystem.cs
- SettingsAttributeDictionary.cs
- CollectionView.cs
- UriTemplateTrieNode.cs
- XmlSchemaRedefine.cs
- DescendentsWalker.cs
- XmlHierarchyData.cs
- ReadOnlyCollectionBase.cs
- ExceptionHandlersDesigner.cs
- SemaphoreFullException.cs
- TextDataBindingHandler.cs
- RegexStringValidatorAttribute.cs
- RSAPKCS1SignatureDeformatter.cs
- SqlTransaction.cs
- ListManagerBindingsCollection.cs
- WebServiceErrorEvent.cs
- ProfileGroupSettingsCollection.cs
- CompiledRegexRunner.cs
- RenderData.cs
- SourceFilter.cs
- GridEntry.cs
- StringSorter.cs
- FrugalList.cs
- ClientConfigPaths.cs
- _Win32.cs
- SqlCacheDependency.cs
- TcpDuplicateContext.cs
- EventListenerClientSide.cs
- HostingEnvironmentSection.cs
- ListViewGroup.cs
- ValidationException.cs
- CacheHelper.cs
- validationstate.cs
- WsdlBuildProvider.cs
- DeflateStreamAsyncResult.cs
- TimeSpanStorage.cs
- SigningCredentials.cs
- SurrogateDataContract.cs
- ClientScriptManager.cs
- CodeSnippetExpression.cs
- NativeMethods.cs
- _Win32.cs
- MeasureData.cs
- UpdateCommand.cs
- PolicyStatement.cs
- DataTableReader.cs
- SafeRightsManagementPubHandle.cs
- Clock.cs
- _SSPIWrapper.cs
- OutputCacheSection.cs
- SqlTrackingWorkflowInstance.cs
- File.cs
- SoapInteropTypes.cs
- ProvidersHelper.cs
- SchemaEntity.cs
- CacheChildrenQuery.cs
- PropertyGeneratedEventArgs.cs
- ReceiveCompletedEventArgs.cs
- MenuCommand.cs
- OracleConnectionString.cs
- SpecularMaterial.cs
- BlobPersonalizationState.cs
- BitmapSizeOptions.cs
- HttpResponseHeader.cs
- IsolatedStorageException.cs
- DataServiceRequestOfT.cs
- ResourceDescriptionAttribute.cs