예제 #1
0
 public Blade(BladeId bladeId,
              IGlobalTimeProvider globalTimeProvider,
              IEventSource <TEvent, TOffset> eventSource,
              IOffsetStorage <TOffset> offsetStorage,
              IOffsetInterpreter <TOffset> offsetInterpreter,
              IEventConsumer <TEvent, TOffset> eventConsumer,
              ILog logger)
 {
     BladeId = bladeId;
     this.globalTimeProvider = globalTimeProvider;
     this.eventSource        = eventSource;
     this.offsetStorage      = offsetStorage;
     this.offsetInterpreter  = offsetInterpreter;
     this.eventConsumer      = eventConsumer;
     this.logger             = logger.ForContext("DelayedEventFeed");
     LogComponentsDescription();
     offsetHolder = new OffsetHolder(offsetStorage, offsetInterpreter, this.logger);
 }
예제 #2
0
 public OffsetHolder(IOffsetStorage <TOffset> offsetStorage, IOffsetInterpreter <TOffset> offsetInterpreter, ILog logger)
 {
     this.offsetStorage     = offsetStorage;
     this.offsetInterpreter = offsetInterpreter;
     this.logger            = logger;
 }
예제 #3
0
 public EventFeedsBuilder <TOffset> WithOffsetInterpreter([NotNull] IOffsetInterpreter <TOffset> offsetInterpreter)
 {
     this.offsetInterpreter = offsetInterpreter;
     return(this);
 }