Code:
/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / ServiceModel / System / ServiceModel / Transactions / WsatExtendedInformation.cs / 2 / WsatExtendedInformation.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.ServiceModel.Transactions { using System.Transactions; class WsatExtendedInformation { string identifier; uint timeout; public WsatExtendedInformation(string identifier, uint timeout) { this.identifier = identifier; this.timeout = timeout; } public string Identifier { get { return this.identifier; } } public uint Timeout { get { return this.timeout; } } public void TryCache(Transaction tx) { Guid transactionId = tx.TransactionInformation.DistributedIdentifier; bool nativeId = IsNativeIdentifier(this.identifier, transactionId); string cacheIdentifier = nativeId ? null : this.identifier; if (!string.IsNullOrEmpty(cacheIdentifier) || this.timeout != 0) { // Cache extended information for subsequent marshal operations WsatExtendedInformationCache.Cache(tx, new WsatExtendedInformation(cacheIdentifier, this.timeout)); } } // Copied Helper method from CoordinationContext so we don't have to have this type public const string UuidScheme = "urn:uuid:"; public static string CreateNativeIdentifier(Guid transactionId) { return UuidScheme + transactionId.ToString("D"); } public static bool IsNativeIdentifier(string identifier, Guid transactionId) { return string.Compare(identifier, CreateNativeIdentifier(transactionId), StringComparison.Ordinal) == 0; } } } // 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
- UnescapedXmlDiagnosticData.cs
- IndentTextWriter.cs
- Int32Storage.cs
- ProtocolsConfigurationHandler.cs
- ControlTemplate.cs
- _IPv6Address.cs
- FixedPageProcessor.cs
- DependencyObjectProvider.cs
- Pens.cs
- XamlSerializationHelper.cs
- SupportsEventValidationAttribute.cs
- CacheMode.cs
- serverconfig.cs
- GridViewCancelEditEventArgs.cs
- wgx_sdk_version.cs
- WebPartConnectionsCancelEventArgs.cs
- CellParaClient.cs
- FirstQueryOperator.cs
- WorkerProcess.cs
- ScriptMethodAttribute.cs
- ToolStripDropDownButton.cs
- HeaderLabel.cs
- EntityDataSourceWizardForm.cs
- TimeoutException.cs
- ShutDownListener.cs
- XamlTreeBuilder.cs
- ServiceInfo.cs
- LocationReference.cs
- PageParser.cs
- FormViewDeleteEventArgs.cs
- Misc.cs
- InvalidPrinterException.cs
- DataGridViewAutoSizeColumnsModeEventArgs.cs
- XmlNavigatorStack.cs
- BrowserDefinition.cs
- DropDownButton.cs
- MachinePropertyVariants.cs
- ListContractAdapter.cs
- WebPartHeaderCloseVerb.cs
- RoleManagerSection.cs
- InvokeHandlers.cs
- EdmComplexPropertyAttribute.cs
- MergeFilterQuery.cs
- MetadataArtifactLoader.cs
- SelfIssuedTokenFactoryCredential.cs
- SplashScreenNativeMethods.cs
- HttpWebResponse.cs
- Zone.cs
- MultitargetingHelpers.cs
- EllipseGeometry.cs
- Base64Stream.cs
- WorkflowViewManager.cs
- NativeMethodsOther.cs
- WebPartZone.cs
- DeclaredTypeElementCollection.cs
- ImageListUtils.cs
- VarRefManager.cs
- DelegateBodyWriter.cs
- CompilationLock.cs
- FormViewUpdateEventArgs.cs
- MetadataUtilsSmi.cs
- FormViewUpdateEventArgs.cs
- SecurityContextTokenCache.cs
- NodeFunctions.cs
- DesignerHierarchicalDataSourceView.cs
- ProfileModule.cs
- ReadOnlyHierarchicalDataSource.cs
- ProtocolsConfiguration.cs
- ListViewItem.cs
- PopupEventArgs.cs
- DefaultValueAttribute.cs
- AttributeUsageAttribute.cs
- WebPartVerbCollection.cs
- StagingAreaInputItem.cs
- AutomationElementCollection.cs
- OneOfConst.cs
- PropertyManager.cs
- DelegatedStream.cs
- Random.cs
- mansign.cs
- ObjectDataSourceEventArgs.cs
- UnhandledExceptionEventArgs.cs
- MembershipSection.cs
- DataColumnCollection.cs
- XPathQueryGenerator.cs
- WeakReferenceKey.cs
- AsmxEndpointPickerExtension.cs
- DataGridViewRowPostPaintEventArgs.cs
- documentation.cs
- CodeTypeReferenceExpression.cs
- LingerOption.cs
- MenuCommandsChangedEventArgs.cs
- SqlTriggerContext.cs
- KnowledgeBase.cs
- ImageSource.cs
- CheckBoxStandardAdapter.cs
- InstalledFontCollection.cs
- OdbcDataReader.cs
- XmlNodeReader.cs
- SchemaTableColumn.cs