Пример #1
0
        public bool Authenticate(string email, SecureString password, bool offline, bool useSessionID)
        {
            if (transport != null)
            {
                transport.Throttled -= new ThottledEventHandler(instance_Throttled);
            }

            transport    = getTransport(email);
            cacheService = new CacheService(email);
            Offline      = offline;

            if (offline)
            {
                return(true);
            }

            transport.Throttled += new ThottledEventHandler(instance_Throttled);
            onAuthenticate(POEEventState.BeforeEvent, email);

            transport.Authenticate(email, password, useSessionID);

            onAuthenticate(POEEventState.AfterEvent, email);

            return(true);
        }
Пример #2
0
        public bool Authenticate(string email, SecureString password, bool offline, bool useSessionID)
        {
            if (transport != null)
                transport.Throttled -= new ThottledEventHandler(instance_Throttled);

            transport = getTransport(email);
            cacheService = new CacheService(email);
            Offline = offline;

            if (offline)
                return true;

            transport.Throttled += new ThottledEventHandler(instance_Throttled);
            onAuthenticate(POEEventState.BeforeEvent, email);

            transport.Authenticate(email, password, useSessionID);

            onAuthenticate(POEEventState.AfterEvent, email);

            return true;
        }
Пример #3
0
 public bool Authenticate(string email, SecureString password)
 {
     return(_innerTranport.Authenticate(email, password));
 }
Пример #4
0
 public bool Authenticate(string email, SecureString password, bool useSessionID)
 {
     return innerTranport.Authenticate(email, password, useSessionID);
 }
Пример #5
0
 public bool Authenticate(string email, SecureString password, bool useSessionID, string ggcookie = "")
 {
     return(innerTranport.Authenticate(email, password, useSessionID, ggcookie));
 }