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
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- WebPartVerb.cs
- DataViewManagerListItemTypeDescriptor.cs
- ResourceContainer.cs
- RulePatternOps.cs
- XPathMultyIterator.cs
- MimeWriter.cs
- SizeLimitedCache.cs
- ListItem.cs
- COM2Properties.cs
- MemberHolder.cs
- ClientTargetCollection.cs
- ConnectionProviderAttribute.cs
- DataGridViewSortCompareEventArgs.cs
- SmtpSection.cs
- DesignTimeParseData.cs
- COAUTHINFO.cs
- RightsManagementPermission.cs
- EntityViewContainer.cs
- DynamicRenderer.cs
- InternalDuplexBindingElement.cs
- FileAuthorizationModule.cs
- SchemaInfo.cs
- BrushConverter.cs
- ToolStripPanelCell.cs
- DesignerHelpers.cs
- MarshalDirectiveException.cs
- DataObjectEventArgs.cs
- ChildChangedEventArgs.cs
- DataTableReader.cs
- SocketStream.cs
- Sql8ExpressionRewriter.cs
- ExpressionBuilder.cs
- TimeSpanValidator.cs
- LOSFormatter.cs
- PixelShader.cs
- StartUpEventArgs.cs
- ParenthesizePropertyNameAttribute.cs
- XmlNodeList.cs
- CmsUtils.cs
- PageHandlerFactory.cs
- StatusBarDrawItemEvent.cs
- QueryPageSettingsEventArgs.cs
- PropertyGeneratedEventArgs.cs
- NativeWindow.cs
- HttpHandlersSection.cs
- DataGridViewRowHeaderCell.cs
- XmlIlGenerator.cs
- ConnectionPoint.cs
- Int16Converter.cs
- DayRenderEvent.cs
- DBCSCodePageEncoding.cs
- SqlInternalConnection.cs
- AttributeCollection.cs
- DataViewSettingCollection.cs
- QueryAsyncResult.cs
- TileModeValidation.cs
- ColorAnimationBase.cs
- ApplicationInfo.cs
- FileUpload.cs
- FactoryId.cs
- ToolStripContentPanelRenderEventArgs.cs
- StringArrayConverter.cs
- ParseHttpDate.cs
- StylusPointProperty.cs
- TransformerConfigurationWizardBase.cs
- HttpStreamFormatter.cs
- ConvertBinder.cs
- IsolatedStorageFile.cs
- DataSetFieldSchema.cs
- ParameterBuilder.cs
- HitTestFilterBehavior.cs
- HtmlShimManager.cs
- Asn1IntegerConverter.cs
- InputEventArgs.cs
- PropertyEmitter.cs
- TimeSpanValidatorAttribute.cs
- Process.cs
- Utils.cs
- RequestStatusBarUpdateEventArgs.cs
- ExtentJoinTreeNode.cs
- Util.cs
- InvalidProgramException.cs
- DependencyObjectProvider.cs
- SqlTypeSystemProvider.cs
- SerialStream.cs
- AppDomainManager.cs
- PrintDialogDesigner.cs
- XmlSchemaIdentityConstraint.cs
- SecurityState.cs
- AccessDataSourceView.cs
- HttpModuleActionCollection.cs
- CommandValueSerializer.cs
- FileDetails.cs
- XmlSchemaSimpleContentExtension.cs
- ReliableSessionBindingElementImporter.cs
- DomNameTable.cs
- XmlAttributeAttribute.cs
- DocumentOrderComparer.cs
- ToolStripGrip.cs
- BrowserTree.cs