Ejemplo n.º 1
0
            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);
            }
Ejemplo n.º 2
0
            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);
            }