/// <summary> /// If needed, add a back end autosize (grouping) cache. /// </summary> /// <param name="callBack">Notification callback to be called when the desired number of objects is reached.</param> /// <param name="groupingDuration">Max amount of time to cache of objects.</param> internal void EnableGroupCaching(ProcessCachedGroupNotification callBack, TimeSpan groupingDuration) { if (callBack != null) { _groupQueue = new OutputGroupQueue(callBack, groupingDuration); } }
/// <summary> /// If needed, add a back end autosize (grouping) cache. /// </summary> /// <param name="callBack">Notification callback to be called when the desired number of objects is reached.</param> /// <param name="objectCount">Max number of objects to be cached.</param> internal void EnableGroupCaching(ProcessCachedGroupNotification callBack, int objectCount) { if (callBack != null) { _groupQueue = new OutputGroupQueue(callBack, objectCount); } }