protected HostEvent(IHostEvent hostEvent) : base(hostEvent) { SenderServiceId = hostEvent.SenderServiceId; TargetServiceId = hostEvent.TargetServiceId; IoProcessorData = hostEvent.IoProcessorData; DelayMs = hostEvent.DelayMs; }
public PersistedScheduledEvent(PersistedEventScheduler eventScheduler, IHostEvent hostEvent) : base(hostEvent) { if (hostEvent is null) { throw new ArgumentNullException(nameof(hostEvent)); } _eventScheduler = eventScheduler; _fireOnUtcTicks = DateTime.UtcNow.Ticks + hostEvent.DelayMs * TimeSpan.TicksPerMillisecond; }