Example #1
0
 /// <summary>
 /// Creates a new <see cref="DynamicEventTimeSessionWindowAssigner{TElement}"/> that assigns elements to sessions based on the element timestamp.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="sessionWindowTimeGapExtractor">The extractor to use to extract the time gap from the input elements.</param>
 /// <returns>The policy.</returns>
 public static DynamicEventTimeSessionWindowAssigner <T> WithDynamicGap <T>(ISessionWindowTimeGapExtractor <T> sessionWindowTimeGapExtractor) => new DynamicEventTimeSessionWindowAssigner <T>(sessionWindowTimeGapExtractor);
 public DynamicProcessingTimeSessionWindowAssigner(ISessionWindowTimeGapExtractor <TElement> sessionWindowTimeGapExtractor)
 {
     SessionWindowTimeGapExtractor = sessionWindowTimeGapExtractor;
 }