Пример #1
0
        public IPromise <IRemoteConnection> Clone(bool async)
        {
            var newConn = new MappedConnection(_mappings, _authCallback);

            return(newConn.Login(_lastCredentials, async)
                   .Convert(u => (IRemoteConnection)newConn));
        }
Пример #2
0
 public IPromise<IRemoteConnection> Clone(bool async)
 {
   var newConn = new MappedConnection(_mappings);
   return newConn.Login(_lastCredentials, async)
     .Convert(u => (IRemoteConnection)newConn);
 }