public TimerTrigger(IUpdateTrigger UpdateTrigger, double interval, string[] arguments) { _trigger = UpdateTrigger; _interval = interval; _arguments = arguments; _timer = new Timer(interval); _timer.Elapsed += TimerEventProcessor; _timer.Start(); }
/// <summary> /// Handles the needed event-calls before updating. /// </summary> private void OnUpdating(IUpdateTrigger trigger, CustomUpdateData customData) { try { double deltaTime = _deltaTimeCounter.Elapsed.TotalSeconds; _deltaTimeCounter.Restart(); Updating?.Invoke(new UpdatingEventArgs(deltaTime, trigger, customData)); } catch { /* Well ... that's not my fault */ } }
public GenericODataEntityController( IUnitOfWork unitOfWork, IModelQueryBuilder modelQueryBuilder, ICreateTrigger <T> createTrigger = null, IUpdateTrigger <T> updateTrigger = null, IDeleteTrigger <T> deleteTrigger = null) { _unitOfWork = unitOfWork; _query = modelQueryBuilder.Build <T>(); _createTrigger = createTrigger; _updateTrigger = updateTrigger; _deleteTrigger = deleteTrigger; }
public SecondWindow(IUpdateTrigger trigger) { _UpdateTrigger = trigger }
/// <inheritdoc /> /// <summary> /// Initializes a new instance of the <see cref="T:RGB.NET.Core.UpdatingEventArgs" /> class. /// </summary> /// <param name="deltaTime">The elapsed time (in seconds) since the last update.</param> /// <param name="trigger">The trigger causing this update.</param> /// <param name="customData">The custom-data provided by the trigger for this update.</param> public UpdatingEventArgs(double deltaTime, IUpdateTrigger trigger, CustomUpdateData customData) { this.DeltaTime = deltaTime; this.Trigger = trigger; this.CustomData = customData; }
public Application(IUpdateTrigger UpdateTrigger, IWeatherDisplayer displayer) { _trigger = UpdateTrigger; _displayer = displayer; }