public WorkerHostedService(FunctionRpcClient rpcClient, FunctionsHostOutputChannel outputChannel, IFunctionsHostClient client, IOptions <WorkerStartupOptions> options) { _rpcClient = rpcClient ?? throw new ArgumentNullException(nameof(rpcClient)); _outputChannel = outputChannel ?? throw new ArgumentNullException(nameof(outputChannel)); _client = client ?? throw new ArgumentNullException(nameof(client)); _options = options?.Value ?? throw new ArgumentNullException(nameof(options)); }
public DefaultFunctionsHostClient(IHostRequestHandler handler, FunctionsHostOutputChannel outputChannel) { if (outputChannel == null) { throw new ArgumentNullException(nameof(outputChannel)); } _outputWriter = outputChannel.Channel.Writer; _handler = handler ?? throw new ArgumentNullException(nameof(handler)); }