Exemplo n.º 1
0
        private void Authenticate(Connection.Connected x)
        {
            var self = Self;

            Connection.Ask(Request
                           .Auth()
                           .Password(_authToken.Password)
                           .UserName(_authToken.Username)
                           .Salt(x.Salt)
                           .Build()).ContinueWith(tr =>
            {
                if (tr.IsFaulted)
                {
                    NotifyStateChanged(new Tarantool.AuthenticationFailed(x.Host, x.Port));
                }

                self.Tell(new AuthOk(x));
            });
        }
Exemplo n.º 2
0
 public AuthOk(Connection.Connected connected)
 {
     Connected = connected;
 }