コード例 #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CheckpointerObserverFactory"/> class.
 /// </summary>
 /// <param name="observerFactory">Instance of Observer Factory</param>
 /// <param name="withManualCheckpointing">Should it automatically checkpoint or not.</param>
 public CheckpointerObserverFactory(
     ChangeFeedObserverFactory observerFactory,
     bool withManualCheckpointing)
 {
     this.observerFactory         = observerFactory ?? throw new ArgumentNullException(nameof(observerFactory));
     this.withManualCheckpointing = withManualCheckpointing;
 }
        /// <summary>
        /// Initializes a new instance of the <see cref="CheckpointerObserverFactory{T}"/> class.
        /// </summary>
        /// <param name="observerFactory">Instance of Observer Factory</param>
        /// <param name="checkpointFrequency">Defined <see cref="CheckpointFrequency"/></param>
        public CheckpointerObserverFactory(ChangeFeedObserverFactory <T> observerFactory, CheckpointFrequency checkpointFrequency)
        {
            if (observerFactory == null)
            {
                throw new ArgumentNullException(nameof(observerFactory));
            }
            if (checkpointFrequency == null)
            {
                throw new ArgumentNullException(nameof(checkpointFrequency));
            }

            this.observerFactory     = observerFactory;
            this.checkpointFrequency = checkpointFrequency;
        }