public async Task StartWorkerProcessAsync() { _startSubscription = _inboundWorkerEvents.Where(msg => msg.MessageType == MsgType.StartStream) .Timeout(TimeSpan.FromSeconds(LanguageWorkerConstants.ProcessStartTimeoutSeconds)) .Take(1) .Subscribe(SendWorkerInitRequest, HandleWorkerStartStreamError); _workerChannelLogger.LogDebug("Initiating Worker Process start up"); await _languageWorkerProcess.StartProcessAsync(); _state = LanguageWorkerChannelState.Initializing; await _workerInitTask.Task; }
public async Task StartWorkerProcessAsync() { _workerChannelLogger.LogDebug("Initiating Worker Process start up"); await _languageWorkerProcess.StartProcessAsync(); }