Ejemplo n.º 1
0
        public Task <IAdaptedConnection> OnConnectionAsync(ConnectionAdapterContext context)
        {
            var adapted = new AdaptedConnection(new LoggingStream(context.ConnectionStream, NullLogger.Instance));

            return(Task.FromResult <IAdaptedConnection>(adapted));
        }
Ejemplo n.º 2
0
        public Task <IAdaptedConnection> OnConnectionAsync(ConnectionAdapterContext context)
        {
            var adapted = new AdaptedConnection(new LoggingStream(context.ConnectionStream, new TestApplicationErrorLogger()));

            return(Task.FromResult <IAdaptedConnection>(adapted));
        }
Ejemplo n.º 3
0
        public Task <IAdaptedConnection> OnConnectionAsync(ConnectionAdapterContext context)
        {
            var adapted = new AdaptedConnection(new PassThroughStream(context.ConnectionStream));

            return(Task.FromResult <IAdaptedConnection>(adapted));
        }