public RestartHauptwerkTask( IHauptwerkMidiInterface hauptwerk, IProcessHelper processHelper, Audio.IAudioCard audioCard, IOptions <RestartHauptwerkConfiguration> options, ILogger <RestartHauptwerkTask> logger) { this.hauptwerk = hauptwerk; this.processHelper = processHelper; this.audioCard = audioCard; this.options = options.Value; this.logger = logger; }
public QuitAndShutdownTaskFactory( IHauptwerkMidiInterface hauptwerk, IProcessHelper processHelper, IShutdownProvider shutdownHelper, IOptions <QuitAndShutdownConfiguration> options, ILogger <QuitAndShutdownTask> logger) { this.hauptwerk = hauptwerk; this.processHelper = processHelper; this.shutdownHelper = shutdownHelper; this.options = options; this.logger = logger; }
public PcService( IHauptwerkMidiInterface hauptwerk, IEnumerable <ITaskFactory> taskFactories, ILogger <PcService> logger) { status = new PcStatus(); subscriptionToHauptwerkStatus = hauptwerk.HauptwerkStatuses.Subscribe( hwStatus => status = new PcStatus() { IsHauptwerkRunning = true, IsHauptwerkAudioActive = hwStatus.IsHauptwerkAudioActive, IsHauptwerkMidiActive = hwStatus.IsHauptwerkMidiActive }); this.hauptwerk = hauptwerk; this.taskFactories = taskFactories.ToDictionary(t => t.Operation); this.logger = logger; RestartHauptwerk(); }