Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BufferingTargetWrapper" /> class.
 /// </summary>
 /// <param name="wrappedTarget">The wrapped target.</param>
 /// <param name="bufferSize">Size of the buffer.</param>
 /// <param name="flushTimeout">The flush timeout.</param>
 /// <param name="overflowAction">The aciton to take when the buffer overflows.</param>
 public BufferingTargetWrapper(Target wrappedTarget, int bufferSize, int flushTimeout, BufferingTargetWrapperOverflowAction overflowAction)
 {
     WrappedTarget  = wrappedTarget;
     BufferSize     = bufferSize;
     FlushTimeout   = flushTimeout;
     SlidingTimeout = true;
     OverflowAction = overflowAction;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="BufferingTargetWrapper" /> class.
 /// </summary>
 /// <param name="wrappedTarget">The wrapped target.</param>
 /// <param name="bufferSize">Size of the buffer.</param>
 /// <param name="flushTimeout">The flush timeout.</param>
 /// <param name="overflowAction">The aciton to take when the buffer overflows.</param>
 public BufferingTargetWrapper(Target wrappedTarget, int bufferSize, int flushTimeout, BufferingTargetWrapperOverflowAction overflowAction)
 {
     this.WrappedTarget  = wrappedTarget;
     this.BufferSize     = bufferSize;
     this.FlushTimeout   = flushTimeout;
     this.SlidingTimeout = true;
     this.OverflowAction = overflowAction;
 }