public EventScheduleDrop(IPortalLiquidContext portalLiquidContext, IDataAdapterDependencies dependencies, IEventSchedule eventSchedule) : base(portalLiquidContext, eventSchedule.Entity) { Schedule = eventSchedule; _dependencies = dependencies; }
internal void SetEventSchedule(IEventSchedule eventSchedule) { if (eventSchedule == null) { throw new ArgumentNullException("eventSchedule"); } lock (_eventScheduleLock) { _eventSchedule = eventSchedule; foreach (var scheduledEvent in _preInitializedEvents) { _eventSchedule.Add(scheduledEvent); } } }
/// <summary> /// Sets the <see cref="IEventSchedule"/> implementation /// </summary> /// <param name="eventSchedule">The event schedule implementation to be used. This is the IRealTimeHandler</param> internal void SetEventSchedule(IEventSchedule eventSchedule) { if (eventSchedule == null) { throw new ArgumentNullException("eventSchedule"); } lock (_eventScheduleLock) { _eventSchedule = eventSchedule; // load up any events that were added before we were ready to send them to the scheduler foreach (var scheduledEvent in _preInitializedEvents) { _eventSchedule.Add(scheduledEvent); } } }
/// <summary> /// Sets the <see cref="IEventSchedule"/> implementation /// </summary> /// <param name="eventSchedule">The event schedule implementation to be used. This is the IRealTimeHandler</param> internal void SetEventSchedule(IEventSchedule eventSchedule) { if (eventSchedule == null) { throw new ArgumentNullException("eventSchedule"); } _eventSchedule = eventSchedule; }