Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

ConnectionFactoryUtils.ReleaseConnection Method

Releases the given connection, stopping it (if necessary) and eventually closing it.

[Visual Basic]
Public Shared Sub ReleaseConnection( _
   ByVal connection As IConnection, _
   ByVal cf As IConnectionFactory, _
   ByVal started As Boolean _
)
[C#]
public static void ReleaseConnection(
   IConnection connection,
   IConnectionFactory cf,
   bool started
);

Parameters

connection
The connection to release. (if this is
null
, the call will be ignored)
cf
The ConnectionFactory that the Connection was obtained from. (may be
null
)
started
whether the Connection might have been started by the application.

Remarks

Checks ShouldStop, if available. This is essentially a more sophisticated version of CloseConnection

See Also

ConnectionFactoryUtils Class | Spring.Messaging.Nms.Connections Namespace