Beispiel #1
0
 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);
 }
Beispiel #2
0
 public void Dispose()
 {
     using (this.commandWatcher)
     using (this.activationWatcher)
     {
         this.commandWatcher = null;
         this.activationWatcher = null;
     }
 }