Esempio n. 1
0
        /// <inheritdoc/>
        public override async ValueTask <Connection> ConnectAsync(EndPoint endPoint, IConnectionProperties?options = null, CancellationToken cancellationToken = default)
        {
            Connection con = await BaseFactory.ConnectAsync(endPoint, options, cancellationToken).ConfigureAwait(false);

            return(new FilteringConnection(con, new WriteBufferingStream(con.Stream)));
        }