コード例 #1
0
ファイル: Changes.cs プロジェクト: hambroz/mycouch
        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;
        }
コード例 #2
0
ファイル: Changes.cs プロジェクト: ape-box/mycouch
        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;
        }