Partager via


Transaction Sip Class

Transaction (Microsoft.Rtc.Sip)

The Transaction class provides the abstract base class for the ServerTransaction and ClientTransaction classes, and represents a generic SIP transaction.

This class implements the IDisposable interface.

The Transaction class is derived from the System.Object class.

Public Methods

The Transaction (Microsoft.Rtc.Sip) class has the following public methods.

Method

Description

Transaction.Cancel

Cancels the transaction and raises the Transaction.Canceled event.

Transaction.Dispose ()

Destroys this transaction and releases all associated resources.

Equals(Object)

Inherited from System.Object. Determines whether the specified System.Object is equal to the current System.Object.

GetHashCode()

Inherited from System.Object. Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.

GetType()

Inherited from System.Object. Gets the System.Type of the current instance.

ToString()

Inherited from System.Object. Returns a System.String that represents the current System.Object.

Public Properties

The Transaction (Microsoft.Rtc.Sip) class has the following public properties.

Property

Description

Transaction.OriginationTime

Data type: DateTime

Access type: Read-only

Contains the date and time the transaction originated.

Transaction.Request

Data type: Request

Access type: Read-only

Contains the Request object that initiated the transaction.

Transaction.Responses

Data type: ResponseCollection

Access type: Read-only

Contains a collection of all Response Sip Class objects associated with the transaction.

Transaction.SyncRoot

Data type: Object

Access type: Read-only

Contains an object used for synchronizing access to a group of objects related to a server or UAC client transaction.

Public Events

The Transaction (Microsoft.Rtc.Sip) class has the following public events.

Event

Description

Transaction.Canceled

Occurs when the transaction is canceled.

Transaction.Terminated

Occurs when the transaction is terminated.

Transaction.TimedOut

Occurs when the transaction times out.

Protected Methods

The Transaction (Microsoft.Rtc.Sip) class has the following protected methods.

Method

Description

Transaction.CheckDisposed

Throws ObjectDisposedException if the transaction is in the disposed state.

Transaction.Close

Releases all resources associated with the transaction.

Transaction.Dispose (bool)

Destroys this transaction and releases all unmanaged resources as well as optionally releasing all managed ones.

Transaction.Finalize

Provides a finalizer for this instance of the Transaction class.

Transaction.OnCanceled

Raises the Transaction.Canceled event.

Transaction.OnTerminated

Raises the Transaction.Terminated event.

Transaction.OnTimedOut

Raises the Transaction.TimedOut event.

Requirements

Redistributable: Requires Microsoft Lync Server 2010

Namespace:Microsoft.Rtc.Sip

Assembly: ServerAgent (in ServerAgent.dll)

See Also

Concepts

ClientTransaction

ServerTransaction