A "disposable singleton" factory that creates/returns the same instance to all clients.
Inheritance: IDisposable
 public ShowParserErrorsCommand(INavigateCommand navigateCommand, RubberduckParserState state, ISearchResultsWindowViewModel viewModel, SearchResultPresenterInstanceManager presenterService)
 {
     _navigateCommand = navigateCommand;
     _state = state;
     _viewModel = viewModel;
     _presenterService = presenterService;
 }
 public FindAllReferencesCommand(INavigateCommand navigateCommand, IMessageBox messageBox, RubberduckParserState state, VBE vbe, ISearchResultsWindowViewModel viewModel, SearchResultPresenterInstanceManager presenterService)
 {
     _navigateCommand = navigateCommand;
     _messageBox = messageBox;
     _state = state;
     _vbe = vbe;
     _viewModel = viewModel;
     _presenterService = presenterService;
 }
Example #3
0
        public FindAllReferencesService(INavigateCommand navigateCommand, IMessageBox messageBox,
                                        RubberduckParserState state, ISearchResultsWindowViewModel viewModel,
                                        SearchResultPresenterInstanceManager presenterService, IUiDispatcher uiDispatcher)
        {
            _navigateCommand  = navigateCommand;
            _messageBox       = messageBox;
            _state            = state;
            _viewModel        = viewModel;
            _presenterService = presenterService;
            _uiDispatcher     = uiDispatcher;

            _state.StateChanged += _state_StateChanged;
        }