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.
![]() |
---|
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. |