public override void Execute(CommandContext context) { var start = DateTime.Today; var end = DateTime.Today + TimeSpan.FromDays(1); PipelineHelper.RunPipeline(start, end); // run the pipeline EventRaiser.RaiseEvent(start, end); }
public Aggregate(UserState state) { State = state; if (State.HasNewIdentity) { EventRaiser.RaiseEvent(this, new UserCreated { Id = State.Id }); } }
public void ChangeName(string name) { State.Name = name; EventRaiser.RaiseEvent(this, new NameChanged(State.Id, State.Name, name)); }
private void simpleMethod() { MessageBox.Show("in FileWatcher.simple() about to raise the event"); eventRaiser.RaiseEvent(); }
public override bool CheckHit() { EventRaiser?.RaiseEvent(); SetState(State.Inactive); return(true); }