コード例 #1
0
        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));
        }
コード例 #2
0
        public static Task <TransportStreamFactory> CreateNamedPipeTransportStream(Uri connectionString, CancellationToken token = default)
        {
            TransportStreamFactory functor = () => CreateStream(connectionString, token);

            return(Task.FromResult(functor));
        }