public Task <IAdaptedConnection> OnConnectionAsync(ConnectionAdapterContext context) { var adapted = new AdaptedConnection(new LoggingStream(context.ConnectionStream, NullLogger.Instance)); return(Task.FromResult <IAdaptedConnection>(adapted)); }
public Task <IAdaptedConnection> OnConnectionAsync(ConnectionAdapterContext context) { var adapted = new AdaptedConnection(new LoggingStream(context.ConnectionStream, new TestApplicationErrorLogger())); return(Task.FromResult <IAdaptedConnection>(adapted)); }
public Task <IAdaptedConnection> OnConnectionAsync(ConnectionAdapterContext context) { var adapted = new AdaptedConnection(new PassThroughStream(context.ConnectionStream)); return(Task.FromResult <IAdaptedConnection>(adapted)); }