SolutionExtensions.ShowSuggestionsCommand.ShowSuggestionsCommand C# (CSharp) Method

ShowSuggestionsCommand() private method

private ShowSuggestionsCommand ( Microsoft.VisualStudio.Shell.Package package, IVsExtensionRepository repository, IVsExtensionManager manager ) : System
package Microsoft.VisualStudio.Shell.Package
repository IVsExtensionRepository
manager IVsExtensionManager
return System
        private ShowSuggestionsCommand(Package package, IVsExtensionRepository repository, IVsExtensionManager manager)
        {
            _package = package;
            _repository = repository;
            _manager = manager;

            OleMenuCommandService commandService = this.ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
            if (commandService != null)
            {
                var menuCommandID = new CommandID(PackageGuids.guidExtensionCmdSet, PackageIds.cmdShowSuggestions);
                var button = new OleMenuCommand(async (s, e) => await ShowSuggestions(s, e), menuCommandID);
                commandService.AddCommand(button);
            }
        }