コード例 #1
0
        public override void Dispose()
        {
            if (this.IsDisposed)
            {
                return;
            }

            base.Dispose();

            this.Session?.Dispose();
            this.Session = null;
            Instance     = null;
        }
コード例 #2
0
 public void Awake()
 {
     Instance = this;
 }
コード例 #3
0
 //Call后台管理协议
 public static ETTask <IResponse> AdministratorCall(this SessionComponent sessionComponent, IAdministratorRequest administratorRequest)
 {
     administratorRequest.Account  = Account;
     administratorRequest.Password = Password;
     return(sessionComponent.Call(administratorRequest));
 }