private void OnJobsStateUpdated(JobsStateDto jobsStateDto)
        {
            Action <JobsStateDto> handlers = JobsStateUpdated;

            handlers?
            .GetInvocationList()
            .Cast <Action <JobsStateDto> >()
            .ForEach(e => e.BeginInvoke(jobsStateDto, null, null));
        }
        public void OnCallback(JobsStateDto callbackObject)
        {
            Action <JobsStateDto> handlers = JobsStateChange;

            handlers?
            .GetInvocationList()
            .Cast <Action <JobsStateDto> >()
            .ForEach(e => e.BeginInvoke(callbackObject, null, null));
        }
 private void Callback_JobsStateChange(JobsStateDto newJobsStateDto)
 {
     JobsState = newJobsStateDto;
 }