예제 #1
0
        private IEnumerable <Event> Handle(MaintenanceJobFinished e)
        {
            MaintenanceJob job = Jobs.FirstOrDefault(j => j.Id == e.JobId);

            job.Finish(e.StartTime, e.EndTime, e.Notes);
            return(new Event[] { e });
        }
예제 #2
0
        private void Handle(MaintenanceJobFinished e)
        {
            MaintenanceJob job = Jobs.FirstOrDefault(j => j.Id == e.JobId);

            job.Finish(e.StartTime, e.EndTime, e.Notes);
        }