public override async Task OnConnectedAsync() { MinersManager.AddMiner(this.XUser, this.XWorker); if (MinersManager.LastJob != null) { await this.Clients.Caller.SendAsync("NewJob", MinersManager.LastJob); } await base.OnConnectedAsync(); }