/// <summary> /// Sets up the task that will be run in the specified context. /// </summary> /// <param name="context">Task execution context</param> public override void Setup(ITaskExecutionContext context) { base.Setup(context); _batchSize = context.GetProperty(BATCH_SIZE_PROPERTY, 100); }
/// <summary> /// Sets the execution context this peek policy is used within. /// </summary> /// <param name="context">Task execution context</param> /// <remarks>The policy can use the context to access its properties.</remarks> public void SetTaskExecutionContext(ITaskExecutionContext context) { _waitTime = context == null ? 0 : context.GetProperty(PEEK_WAIT_TIME, 0); }