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
- XmlWrappingReader.cs
- TraceSection.cs
- ZoneButton.cs
- BinaryNode.cs
- DbModificationClause.cs
- HtmlDocument.cs
- WebServiceErrorEvent.cs
- typedescriptorpermissionattribute.cs
- AttachedAnnotation.cs
- Point3DKeyFrameCollection.cs
- GraphicsContext.cs
- Dictionary.cs
- XmlSchemaInclude.cs
- AtomServiceDocumentSerializer.cs
- Group.cs
- cookiecollection.cs
- ConfigurationException.cs
- PageSettings.cs
- ObservableCollection.cs
- SecurityValidationBehavior.cs
- AnnotationAdorner.cs
- TextDecorationCollectionConverter.cs
- Span.cs
- NamespaceCollection.cs
- PathGeometry.cs
- CharUnicodeInfo.cs
- HorizontalAlignConverter.cs
- SetterBase.cs
- Brush.cs
- BulletedList.cs
- AnnouncementService.cs
- KeyProperty.cs
- TrustLevelCollection.cs
- CellPartitioner.cs
- TextSegment.cs
- CodeSnippetCompileUnit.cs
- GlyphRunDrawing.cs
- LinearGradientBrush.cs
- EmptyEnumerator.cs
- DataGridViewDataErrorEventArgs.cs
- SQLBytesStorage.cs
- InvocationExpression.cs
- XmlWrappingReader.cs
- _OSSOCK.cs
- TypeInitializationException.cs
- ThreadPool.cs
- Int32Rect.cs
- Size.cs
- Array.cs
- SurrogateEncoder.cs
- RemotingServices.cs
- SqlRowUpdatingEvent.cs
- UnconditionalPolicy.cs
- DescendantOverDescendantQuery.cs
- NullableLongAverageAggregationOperator.cs
- AlignmentYValidation.cs
- IdnElement.cs
- ToggleProviderWrapper.cs
- FixedPageProcessor.cs
- OuterGlowBitmapEffect.cs
- DataBindingCollection.cs
- SystemDiagnosticsSection.cs
- DynamicRendererThreadManager.cs
- TickBar.cs
- XMLDiffLoader.cs
- DataBoundControlAdapter.cs
- DataTableMapping.cs
- LicenseException.cs
- SmtpNegotiateAuthenticationModule.cs
- FormsAuthenticationCredentials.cs
- Rule.cs
- XmlSchemaComplexType.cs
- SmiConnection.cs
- CompilerInfo.cs
- SecurityDescriptor.cs
- PathBox.cs
- BrowserCapabilitiesFactory.cs
- Matrix3DConverter.cs
- CompositeControlDesigner.cs
- OdbcReferenceCollection.cs
- ItemList.cs
- CqlGenerator.cs
- DummyDataSource.cs
- ObjectItemCollectionAssemblyCacheEntry.cs
- ApplicationFileCodeDomTreeGenerator.cs
- RichTextBoxConstants.cs
- XmlDocumentSerializer.cs
- ContextStaticAttribute.cs
- HandleCollector.cs
- WorkflowTraceTransfer.cs
- TextView.cs
- AddressAccessDeniedException.cs
- EntityProviderServices.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- MessageBox.cs
- TextHintingModeValidation.cs
- BitmapImage.cs
- DateTimeOffset.cs
- DataKeyArray.cs
- Bidi.cs