public async ValueTask Start() { if (_isRunning) { _logger.LogInformation("MessageHandleService is running!"); return; } Initialize(); _performanceService.Start(); await _server.RunAsync(); _isRunning = true; }
public async ValueTask Start() { if (_isRunning) { _logger.LogInformation("PushSendService is running!"); return; } Initialize(); _performanceService.Start(); await _server.RunAsync(); _isRunning = true; for (int i = 0; i < _option.PushThread; i++) { // PushTask(); PushMultipleTask(); } //PushMultipleTask(); }