Beispiel #1
0
        public BookmarksService(ILog log, IShellEventsService shellEventsService,
                                IShellStatusBarService shellStatusBarService, IShellSelectionService shellSelectionService, IShellHelperService shellHelperService)
        {
            if (log == null)
            {
                throw new ArgumentNullException(nameof(log));
            }

            if (shellEventsService == null)
            {
                throw new ArgumentNullException(nameof(shellEventsService));
            }

            if (shellStatusBarService == null)
            {
                throw new ArgumentNullException(nameof(shellStatusBarService));
            }

            if (shellSelectionService == null)
            {
                throw new ArgumentNullException(nameof(shellSelectionService));
            }

            if (shellHelperService == null)
            {
                throw new ArgumentNullException(nameof(shellHelperService));
            }

            _log = log;
            _shellEventsService    = shellEventsService;
            _shellStatusBarService = shellStatusBarService;
            _shellSelectionService = shellSelectionService;
            _shellHelperService    = shellHelperService;
        }
Beispiel #2
0
 public SupportOptionsFeature(IServiceProvider serviceProvider, ILog log, IOptionsService optionsService,
                              IPackageService packageService, IShellEventsService shellEventsService, IShellHelperService shellHelperService,
                              IShellInfoBarService shellInfoBarService, IMessageService messageService) : base(serviceProvider, log, optionsService)
 {
     _packageService      = packageService;
     _shellEventsService  = shellEventsService;
     _shellHelperService  = shellHelperService;
     _shellInfoBarService = shellInfoBarService;
     _messageService      = messageService;
 }