public Recorder(IServiceProvider serviceProvider) { Validate.IsNotNull(serviceProvider, "serviceProvider"); this.serviceProvider = serviceProvider; dataModel = new RecorderDataModel(); this.activationWatcher = this.activationWatcher ?? new WindowActivationWatcher(serviceProvider: this.serviceProvider, dataModel: this.dataModel); }
public void Dispose() { using (this.commandWatcher) using (this.activationWatcher) { this.commandWatcher = null; this.activationWatcher = null; } }