public async Task GetDbStatus(string id) { var status = await _dbStatus.PingAsync(); await Clients.Client(id).SendAsync("DbStatus", status); }
public async Task ExecuteAsync(CancellationToken cancellationToken) { _logger.LogDebug("Start DbStatus cron task."); await Task.Run(() => _dbStatus.PingAsync(), cancellationToken); }