Represents a connection to a Gateway daemon.

Namespace:  IBM.CTG
Assembly:  IBM.CTG.Client (in IBM.CTG.Client.dll) Version: 1.0.0.0

Syntax

C#
public class GatewayConnection : IDisposable
Visual Basic (Declaration)
Public Class GatewayConnection _
	Implements IDisposable
Visual C++
public ref class GatewayConnection : IDisposable

Remarks

Instances of GatewayConnection can only be used within the thread that created them. Attempts to call Flow(GatewayRequest), ListSystems()()() or Close()()() from another thread will cause an InvalidOperationException.

Important Note:

Because instances of GatewayConnection can only be used within the thread that created them, the garbage collector will not attempt to close instances of GatewayConnection it is collecting. This means that the connection to the Gateway daemon will remain open after the GatewayConnection has been collected. To protect against this, always call Close()()() or use language constructs such as using (Using in Visual Basic) to automatically close the GatewayConnection after use.

Inheritance Hierarchy

System..::.Object
  IBM.CTG..::.GatewayConnection

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also