Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / fx / src / tx / System / Transactions / TransactionInformation.cs / 1305376 / TransactionInformation.cs
//------------------------------------------------------------------------------ //// Copyright (c) Microsoft Corporation. All rights reserved. // //----------------------------------------------------------------------------- namespace System.Transactions { using System; using System.Transactions.Diagnostics; public class TransactionInformation { private InternalTransaction internalTransaction; internal TransactionInformation( InternalTransaction internalTransaction ) { this.internalTransaction = internalTransaction; } public string LocalIdentifier { get { if ( DiagnosticTrace.Verbose ) { MethodEnteredTraceRecord.Trace( SR.GetString( SR.TraceSourceLtm ), "TransactionInformation.get_LocalIdentifier" ); } try { return this.internalTransaction.TransactionTraceId.TransactionIdentifier; } finally { if ( DiagnosticTrace.Verbose ) { MethodEnteredTraceRecord.Trace( SR.GetString( SR.TraceSourceLtm ), "TransactionInformation.get_LocalIdentifier" ); } } } } public Guid DistributedIdentifier { get { if ( DiagnosticTrace.Verbose ) { MethodEnteredTraceRecord.Trace( SR.GetString( SR.TraceSourceLtm ), "TransactionInformation.get_DistributedIdentifier" ); } try { // syncronize to avoid potential ---- between accessing the DistributerIdentifier // and getting the transaction information entry populated... lock(this.internalTransaction) { return this.internalTransaction.State.get_Identifier( this.internalTransaction ); } } finally { if ( DiagnosticTrace.Verbose ) { MethodExitedTraceRecord.Trace( SR.GetString( SR.TraceSourceLtm ), "TransactionInformation.get_DistributedIdentifier" ); } } } } public DateTime CreationTime { get { return new DateTime( this.internalTransaction.CreationTime ); } } public TransactionStatus Status { get { if ( DiagnosticTrace.Verbose ) { MethodEnteredTraceRecord.Trace( SR.GetString( SR.TraceSourceLtm ), "TransactionInformation.get_Status" ); } try { return this.internalTransaction.State.get_Status( this.internalTransaction ); } finally { if ( DiagnosticTrace.Verbose ) { MethodExitedTraceRecord.Trace( SR.GetString( SR.TraceSourceLtm ), "TransactionInformation.get_Status" ); } } } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- DiffuseMaterial.cs
- CharConverter.cs
- ProjectionAnalyzer.cs
- DelegateSerializationHolder.cs
- DecimalSumAggregationOperator.cs
- ReadOnlyMetadataCollection.cs
- MtomMessageEncodingBindingElement.cs
- TrustLevel.cs
- StandardCommands.cs
- PropertyCollection.cs
- ControlPropertyNameConverter.cs
- NavigatingCancelEventArgs.cs
- MasterPageParser.cs
- UIPropertyMetadata.cs
- ScriptMethodAttribute.cs
- TextEndOfSegment.cs
- Transform.cs
- ExecutionScope.cs
- COM2PictureConverter.cs
- HttpApplicationFactory.cs
- IMembershipProvider.cs
- EntryIndex.cs
- MouseGesture.cs
- Int32Animation.cs
- EFColumnProvider.cs
- MenuItem.cs
- ProfileInfo.cs
- TextSimpleMarkerProperties.cs
- WindowsStatic.cs
- XmlSchemaAttribute.cs
- LoadWorkflowByInstanceKeyCommand.cs
- DoubleLinkList.cs
- TypeBuilder.cs
- PageThemeBuildProvider.cs
- ConditionCollection.cs
- BinaryQueryOperator.cs
- QueryAccessibilityHelpEvent.cs
- AttachInfo.cs
- UpnEndpointIdentityExtension.cs
- InternalPermissions.cs
- ParenthesizePropertyNameAttribute.cs
- DisposableCollectionWrapper.cs
- ControlDesigner.cs
- TextElement.cs
- OperationDescriptionCollection.cs
- ToolStripProgressBar.cs
- PersonalizationProvider.cs
- UdpAnnouncementEndpoint.cs
- DataGridDefaultColumnWidthTypeConverter.cs
- ColorKeyFrameCollection.cs
- MembershipValidatePasswordEventArgs.cs
- DataTableTypeConverter.cs
- ProgramPublisher.cs
- GroupItem.cs
- CustomWebEventKey.cs
- ToolboxDataAttribute.cs
- DataGridViewColumnConverter.cs
- ObjectListCommandEventArgs.cs
- InkCollectionBehavior.cs
- ImplicitInputBrush.cs
- LinkConverter.cs
- MediaCommands.cs
- WsdlBuildProvider.cs
- DependsOnAttribute.cs
- EdmProviderManifest.cs
- IDispatchConstantAttribute.cs
- Subtree.cs
- ViewGenerator.cs
- MemoryFailPoint.cs
- CurrencyManager.cs
- TreeNodeConverter.cs
- GeneralTransform.cs
- MenuItemStyle.cs
- Validator.cs
- ReaderWriterLockWrapper.cs
- HtmlTitle.cs
- RangeValuePattern.cs
- ScrollBar.cs
- SQLMembershipProvider.cs
- Model3DGroup.cs
- ThrowHelper.cs
- SqlTrackingService.cs
- JapaneseCalendar.cs
- HttpPostedFile.cs
- EncodingInfo.cs
- EditorPartCollection.cs
- InvalidOleVariantTypeException.cs
- VectorCollectionValueSerializer.cs
- TemplateField.cs
- LabelLiteral.cs
- InplaceBitmapMetadataWriter.cs
- FixedHyperLink.cs
- PatternMatcher.cs
- SoapAttributes.cs
- CodeNamespaceCollection.cs
- uribuilder.cs
- ProfileServiceManager.cs
- ListViewUpdateEventArgs.cs
- Inflater.cs
- NameHandler.cs