public Changes(IDbClientConnection connection, ISerializer serializer) : base(connection) { Ensure.That(serializer, "serializer").IsNotNull(); HttpRequestFactory = new GetChangesHttpRequestFactory(); ContinuousHttpRequestFactory = new GetContinuousChangesHttpRequestFactory(); ChangesResponseFactory = new ChangesResponseFactory(serializer); ContinuousChangesResponseFactory = new ContinuousChangesResponseFactory(serializer); ObservableSubscribeOnScheduler = () => TaskPoolScheduler.Default; }
public Changes(IDbConnection connection, ISerializer serializer) : base(connection) { Ensure.Any.IsNotNull(serializer, nameof(serializer)); HttpRequestFactory = new GetChangesHttpRequestFactory(); ContinuousHttpRequestFactory = new GetContinuousChangesHttpRequestFactory(); ChangesResponseFactory = new ChangesResponseFactory(serializer); ContinuousChangesResponseFactory = new ContinuousChangesResponseFactory(serializer); ObservableWorkTaskFactoryResolver = () => Task.Factory; }