public IPromise<string> Login(ICredentials credentials, bool async)
 {
   _lastCredentials = credentials;
   var mapping = _mappings.First(m => m.Databases.Contains(credentials.Database));
   _current = mapping.Connection;
   return _current.Login(credentials, async);
 }
 public void Login(ICredentials credentials)
 {
   _lastCredentials = credentials;
   var mapping = _mappings.First(m => m.Databases.Contains(credentials.Database));
   _current = mapping.Connection;
   _current.Login(credentials);
 }
Exemple #3
0
 public Innovator.Client.IOM.Innovator GetInnovator()
 {
     if (this.Inn == null)
     {
         IRemoteConnection conn = Innovator.Client.Factory.GetConnection(Url, "ArasDevTool");
         conn.Login(new ExplicitCredentials(DB, User, Password));
         Inn = new Innovator.Client.IOM.Innovator(conn);
     }
     return(Inn);
 }
        public IPromise <string> Login(ICredentials credentials, bool async)
        {
            var mapping = GetMapping(credentials.Database);

            _lastCredentials = credentials;

            var credPromise = GetCredentials(mapping, credentials, async);

            _current = mapping.Connection;
            if (_settings != null)
            {
                _current.DefaultSettings(_settings);
            }
            return(credPromise.Continue(cred => _current.Login(cred, async)));
        }