Esempio n. 1
0
        public void Login(LoginData credentials)
        {
            boConnection = new Connection(credentials.Url);
            boSession    = new Session_(boConnection);
            if (credentials.Proxy != null && !String.IsNullOrEmpty(credentials.Proxy.Host))
            {
                boConnection.Proxy = credentials.Proxy.ToWebProxy();
            }
            EnterpriseCredential boEnterpriseCredential = new EnterpriseCredential();

            boEnterpriseCredential.Domain   = credentials.Domain;
            boEnterpriseCredential.Login    = credentials.Login;
            boEnterpriseCredential.Password = credentials.Password;
            boEnterpriseCredential.AuthType = credentials.AuthType;
            boSessionInfo = boSession.Login(boEnterpriseCredential);
            boSessionId   = boSessionInfo.SessionID;
        }
Esempio n. 2
0
 public Session140(string sessionURL) : base(sessionURL)
 {
     this.boConnection = new Connection(sessionURL);
     this.boSession    = new Session(this.boConnection);
 }