private TimeSpan ConfigureReadWriteTimeout()

in src/ServiceProfiler.EventPipe.Otel/Microsoft.ApplicationInsights.Profiler.Shared/Services/IPC/DuplexNamedPipeService.cs [220:234]


    private TimeSpan ConfigureReadWriteTimeout(TimeSpan timeout)
    {
        // Use the default value
        if (timeout == default)
        {
            timeout = _options.DefaultMessageTimeout;
        }
        // Can't continue if the default vaule is set to 0.
        if (timeout == default)
        {
            throw new InvalidOperationException($"The current timeout span is not accepted: {timeout}");
        }

        return timeout;
    }