protected override async void OnSleep() { IPitchDetectionService srv = AppContext.Container.Resolve <IPitchDetectionService>(); if (srv.IsStarted) { await srv.Stop(); } }
public XamTunerViewModel(IPitchDetectionService pitchDetectionService) : base() { _pitchDetectionService = pitchDetectionService; _pitchDetectionService.PitchDetected += OnPitchDetected; }