Spring.NET 1.3.0 RC1 for .NET 2.0 API Reference

SingleConnectionFactory.GetSharedConnection Method

Wrap the given Connection with a proxy that delegates every method call to it but suppresses close calls. This is useful for allowing application code to handle a special framework Connection just like an ordinary Connection from a ConnectionFactory.

[Visual Basic]
Protected Overridable Sub GetSharedConnection( _
   ByVal target As IConnection _
protected virtual IConnection GetSharedConnection(
   IConnection target


The original connection to wrap.

Return Value

the wrapped connection

See Also

SingleConnectionFactory Class | Spring.Messaging.Ems.Connections Namespace