public static Task <TransportStreamFactory> CreateNamedPipeTransportStream(Uri connectionString, CancellationToken token = default) { _ = connectionString ?? throw new ArgumentNullException(nameof(connectionString)); var connectionId = connectionString.Segments[1]; TransportStreamFactory functor = () => CreateNamedPipeTransportStream(connectionId, token); return(Task.FromResult(functor)); }
public static Task <TransportStreamFactory> CreateNamedPipeTransportStream(Uri connectionString, CancellationToken token = default) { TransportStreamFactory functor = () => CreateStream(connectionString, token); return(Task.FromResult(functor)); }