Beispiel #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;
            }
        }
Beispiel #2
0
 public FutureProofConnectionAdapter(FutureProofConnection connection)
 {
     this._connection = connection;
 }