Example #1
0
 protected override Task OnStopAsync(ServiceStopInfo reason)
 {
     this.heartbeat_timer.Dispose();
     this.gate_sync_timer.Dispose();
     this.acceptor.Dispose();
     return(Task.FromResult(0));
 }
Example #2
0
 protected override async Task OnStopAsync(ServiceStopInfo reason)
 {
     this.sync_state_timer.Dispose();
     foreach (var item in zoneNodes)
     {
         await item.Value.DoStopAsync();
     }
 }
Example #3
0
        protected override Task OnStopAsync(ServiceStopInfo stop)
        {
            if (http != null)
            {
                http.Dispose();
            }

            //Instance = null;
            return(Task.CompletedTask);
        }
Example #4
0
        protected override async Task OnStopAsync(ServiceStopInfo reason)
        {
            this.heartbeat_timer.Dispose();
            if (session != null)
            {
                this.session.socket.Disconnect(reason.Reason);
            }

            await ShutdownLogicServiceAsync("session destroy");

            await this.accountSave.FlushAsync();
        }
Example #5
0
 protected override Task OnStopAsync(ServiceStopInfo reason)
 {
     return(Task.CompletedTask);
 }
Example #6
0
 protected override Task OnStopAsync(ServiceStopInfo reason)
 {
     EventMgr?.Dispose();
     mTimer?.Dispose();
     return(Task.FromResult(0));
 }