public Listener(MonitorSelectionService service, SVsServiceProvider serviceProvider) { Contract.Requires <ArgumentNullException>(service != null, "service"); Contract.Requires <ArgumentNullException>(serviceProvider != null, "serviceProvider"); _service = service; _monitorSelection = serviceProvider.GetMonitorSelection(); _monitorSelection.AdviseSelectionEvents(this, out _adviseCookie); }
public Listener([NotNull] MonitorSelectionService service, [NotNull] SVsServiceProvider serviceProvider) { Requires.NotNull(service, nameof(service)); Requires.NotNull(serviceProvider, nameof(serviceProvider)); _service = service; _monitorSelection = serviceProvider.GetMonitorSelection(); _monitorSelection.AdviseSelectionEvents(this, out _adviseCookie); }
public Listener(MonitorSelectionService service, SVsServiceProvider serviceProvider) { Contract.Requires<ArgumentNullException>(service != null, "service"); Contract.Requires<ArgumentNullException>(serviceProvider != null, "serviceProvider"); _service = service; _monitorSelection = serviceProvider.GetMonitorSelection(); _monitorSelection.AdviseSelectionEvents(this, out _adviseCookie); }