/// <summary> /// Initializes a new instance of the <see cref="AsyncTargetWrapper" /> class. /// </summary> /// <param name="wrappedTarget">The wrapped target.</param> /// <param name="queueLimit">Maximum number of requests in the queue.</param> /// <param name="overflowAction">The action to be taken when the queue overflows.</param> public AsyncTargetWrapper(Target wrappedTarget, int queueLimit, AsyncTargetWrapperOverflowAction overflowAction) { RequestQueue = new AsyncRequestQueue(10000, AsyncTargetWrapperOverflowAction.Discard); TimeToSleepBetweenBatches = 50; BatchSize = 100; WrappedTarget = wrappedTarget; QueueLimit = queueLimit; OverflowAction = overflowAction; }
/// <summary> /// Initializes a new instance of the <see cref="AsyncTargetWrapper" /> class. /// </summary> /// <param name="wrappedTarget">The wrapped target.</param> /// <param name="queueLimit">Maximum number of requests in the queue.</param> /// <param name="overflowAction">The action to be taken when the queue overflows.</param> public AsyncTargetWrapper(Target wrappedTarget, int queueLimit, AsyncTargetWrapperOverflowAction overflowAction) { RequestQueue = new AsyncRequestQueue(10000, AsyncTargetWrapperOverflowAction.Discard); TimeToSleepBetweenBatches = 50; BatchSize = 100; WrappedTarget = wrappedTarget; QueueLimit = queueLimit; OverflowAction = overflowAction; }