예제 #1
0
        public async ValueTask Start()
        {
            if (_isRunning)
            {
                _logger.LogInformation("MessageHandleService is running!");
                return;
            }
            Initialize();
            _performanceService.Start();

            await _server.RunAsync();

            _isRunning = true;
        }
예제 #2
0
        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();
        }