コード例 #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
ファイル: POEModel.cs プロジェクト: sebflex/build-optimizer
        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));
 }