Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
        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;
        }