LogEntry.cs source code in C# .NET

Source code for the .NET framework in C#

                        

Code:

/ WCF / WCF / 3.5.30729.1 / untmp / Orcas / SP / ndp / cdf / src / WCF / TransactionBridge / Microsoft / Transactions / Wsat / Recovery / LogEntry.cs / 1 / LogEntry.cs

                            //------------------------------------------------------------------------------ 
// Copyright (c) Microsoft Corporation.  All rights reserved.
//-----------------------------------------------------------------------------

// This file contains the class that represents a deserialized log entry 

using System; 
using System.ServiceModel; 
using Microsoft.Transactions.Wsat.Messaging;
 
namespace Microsoft.Transactions.Wsat.Recovery
{
    class LogEntry
    { 
        string remoteTransactionId;
        Guid localTransactionId; 
        Guid localEnlistmentId; 
        EndpointAddress endpoint;
 
        public LogEntry(string remoteTransactionId,
                        Guid localTransactionId,
                        Guid localEnlistmentId,
                        EndpointAddress endpoint) 
        {
            this.remoteTransactionId = remoteTransactionId; 
            this.localTransactionId = localTransactionId; 
            this.localEnlistmentId = localEnlistmentId;
            this.endpoint = endpoint; 
        }

        public LogEntry(string remoteTransactionId,
                        Guid localTransactionId, 
                        Guid localEnlistmentId)
            : 
            this(remoteTransactionId, localTransactionId, localEnlistmentId, null) 
        {
        } 

        public string RemoteTransactionId
        {
            get { return this.remoteTransactionId; } 
        }
 
        public Guid LocalTransactionId 
        {
            get { return this.localTransactionId; } 
        }

        public Guid LocalEnlistmentId
        { 
            get { return this.localEnlistmentId; }
        } 
 
        public EndpointAddress Endpoint
        { 
            get { return this.endpoint; }
            set { this.endpoint = value; }
        }
    } 
}

// File provided for Reference Use Only by Microsoft Corporation (c) 2007.
// Copyright (c) Microsoft Corporation. All rights reserved.


                        

Link Menu

Network programming in C#, Network Programming in VB.NET, Network Programming in .NET
This book is available now!
Buy at Amazon US or
Buy at Amazon UK