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
- TextFormatter.cs
- ApplicationBuildProvider.cs
- NetCodeGroup.cs
- StringArrayConverter.cs
- BindingNavigatorDesigner.cs
- SizeAnimationBase.cs
- PointAnimation.cs
- PeerTransportListenAddressConverter.cs
- ComponentChangingEvent.cs
- ActivityCompletionCallbackWrapper.cs
- PTManager.cs
- CorrelationManager.cs
- OneOf.cs
- MetadataCollection.cs
- NameValueCollection.cs
- Stackframe.cs
- XmlTextReaderImplHelpers.cs
- NullableDecimalSumAggregationOperator.cs
- DigitShape.cs
- ObjectHandle.cs
- LicenseContext.cs
- AuthorizationSection.cs
- XhtmlBasicControlAdapter.cs
- XmlSubtreeReader.cs
- FileRecordSequenceHelper.cs
- SQLGuid.cs
- SamlConditions.cs
- _Connection.cs
- XmlCodeExporter.cs
- ProxyWebPartManagerDesigner.cs
- InkCollectionBehavior.cs
- PointAnimationBase.cs
- ScriptComponentDescriptor.cs
- SourceSwitch.cs
- CancelEventArgs.cs
- SQLMoney.cs
- FrameworkObject.cs
- TypeForwardedToAttribute.cs
- HostProtectionPermission.cs
- ChildDocumentBlock.cs
- DeflateEmulationStream.cs
- MimeMapping.cs
- Column.cs
- MSG.cs
- NodeCounter.cs
- ColorAnimationBase.cs
- CheckoutException.cs
- ServiceOperationViewControl.cs
- KnownIds.cs
- Exception.cs
- MultiViewDesigner.cs
- SystemNetworkInterface.cs
- ScrollContentPresenter.cs
- BufferedOutputStream.cs
- ConnectionPointCookie.cs
- SchemaCompiler.cs
- Model3DCollection.cs
- RegexCaptureCollection.cs
- ISAPIApplicationHost.cs
- LogRestartAreaEnumerator.cs
- DtdParser.cs
- Converter.cs
- ConfigurationLocationCollection.cs
- BindableTemplateBuilder.cs
- Scene3D.cs
- EventLog.cs
- IImplicitResourceProvider.cs
- PrtTicket_Editor.cs
- FileUtil.cs
- Queue.cs
- CqlLexer.cs
- EventSinkHelperWriter.cs
- AttributeUsageAttribute.cs
- GroupItemAutomationPeer.cs
- DataControlImageButton.cs
- InheritanceUI.cs
- MimeWriter.cs
- DataGridViewSelectedCellsAccessibleObject.cs
- GPPOINTF.cs
- Win32MouseDevice.cs
- NameValueConfigurationElement.cs
- CommunicationObjectFaultedException.cs
- ProjectionPath.cs
- basemetadatamappingvisitor.cs
- DataGridHelper.cs
- securitycriticaldata.cs
- OperandQuery.cs
- TextDecorationCollectionConverter.cs
- CustomSignedXml.cs
- SingleStorage.cs
- EditorZoneBase.cs
- VirtualizedContainerService.cs
- ParenthesizePropertyNameAttribute.cs
- Activator.cs
- SqlDataSourceParameterParser.cs
- ExtenderControl.cs
- DesignerWithHeader.cs
- AspNetCacheProfileAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- XmlName.cs