Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

NmsUtils.CloseConnection(IConnection, Boolean) Method

Close the given NMS Connection and ignore any thrown exception. This is useful for typical

finally
blocks in manual NMS code.

[Visual Basic]
Public Overloads Shared Sub CloseConnection( _
   ByVal con As IConnection, _
   ByVal stop As Boolean _
)
[C#]
public static void CloseConnection(
   IConnection con,
   bool stop
);

Parameters

con
the NMS Connection to close (may be
null
)
stop
whether to call
stop()
before closing

See Also

NmsUtils Class | Spring.Messaging.Nms.Support Namespace | NmsUtils.CloseConnection Overload List