private T AddJob <T>(T job) where T : ILoadJob { job.OnStart = (_) => OnStartAny?.Invoke(); job.OnStop = (_) => OnStopAny?.Invoke(); return(job); }
public IPreloadOperation Prepare(string path) { Recorder.Catch("Cri Movie", path); var operation = new PreloadOperation(SkipLoadProcess.Create(path)); operation.OnStart = _ => OnStartAny?.Invoke(); operation.OnStop = _ => OnStopAny?.Invoke(); return(m_routine.Register(operation)); }
public IPreloadOperation Prepare(string cueSheetName) { Recorder.Catch("Cri Sound", cueSheetName); var operation = new PreloadOperation(SkipLoadProcess.Create(cueSheetName)); operation.OnStart = _ => OnStartAny?.Invoke(); operation.OnStop = _ => OnStopAny?.Invoke(); return(m_routine.Register(operation)); }