Exemplo n.º 1
0
        public void AttachConnection(FutureProofConnection connection, ConnectionArgs args)
        {
            var adapter = new FutureProofConnectionAdapter(connection);

            try
            {
                this.SetConnection(adapter, args);
                this._adapter = adapter;
            }
            catch
            {
                adapter.Dispose();
                throw;
            }
        }
Exemplo n.º 2
0
 public FutureProofConnectionAdapter(FutureProofConnection connection)
 {
     this._connection = connection;
 }