Mono.Remoting.Channels.Unix.HostConnectionPool.ReleaseConnection C# (CSharp) Method

ReleaseConnection() public method

public ReleaseConnection ( UnixConnection entry ) : void
entry UnixConnection
return void
		public void ReleaseConnection (UnixConnection entry)
		{
			lock (_pool)
			{
				entry.ControlTime = DateTime.Now;	// Initialize timeout
				_pool.Add (entry);
				Monitor.Pulse (_pool);
			}
		}

Usage Example

 // Returns the connection to the pool
 public void Release()
 {
     _pool.ReleaseConnection(this);
 }