protected override Task OnStopAsync(ServiceStopInfo reason) { this.heartbeat_timer.Dispose(); this.gate_sync_timer.Dispose(); this.acceptor.Dispose(); return(Task.FromResult(0)); }
protected override async Task OnStopAsync(ServiceStopInfo reason) { this.sync_state_timer.Dispose(); foreach (var item in zoneNodes) { await item.Value.DoStopAsync(); } }
protected override Task OnStopAsync(ServiceStopInfo stop) { if (http != null) { http.Dispose(); } //Instance = null; return(Task.CompletedTask); }
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(); }
protected override Task OnStopAsync(ServiceStopInfo reason) { return(Task.CompletedTask); }
protected override Task OnStopAsync(ServiceStopInfo reason) { EventMgr?.Dispose(); mTimer?.Dispose(); return(Task.FromResult(0)); }