CMTransport.Destroy

Method

Visual Basic

Overrides Public Sub Destroy()

C#

public override void Destroy();

Purpose

Destroy a certified delivery transport.

Remarks

Destroying a certified delivery transport with a file-based ledger always leaves the ledger file intact; it neither erases nor removes a ledger file.

Warning 

When calling this method to destroy a distributed queue transport, the distributed queue needs the listeners, queues and dispatchers (associated with the transport) to remain operational—otherwise the distributed queue can lose reliable (non-certified) task messages before they are processed. Programs must wait until after the transport has been completely destroyed before destroying these associated objects.

Destruction is asynchronous. Use a weak reference to determine when the garbage collector has completely destroyed the transport object.

See Also

CMTransport