/// <summary>
 /// Initializes a new instance of the <see cref="QAuthentication"/> class with the specified host name.
 /// </summary>
 /// <remarks>All parameters are validating  </remarks>
 /// <param name="host">Quatrix name where account is hosted</param>
 public QAuthentication( string host )
     : base(host)
 {
     Remember = RememberOptions.HostLogin;
     this.expireEvent = new SessionKeepAlive( this );
     this.SessionExpire.KeepAlive = true;
     this.LoginedEvent += QuatrixAuthentication_LoginedEvent;
     this.SessionExpired += QuatrixAuthentication_SessionExpired;
 }
Ejemplo n.º 2
0
 public void c_SessionKeepAlive_NotLogined()
 {
     QApi api = AppTesting.APIinit( 2 );
     SessionKeepAlive ska = new SessionKeepAlive( api );
     Assert.IsNotNull( ska );
 }