Azure.ApiManagement.IngestTool.StartApimImportWizardCommand.StartApimImportWizardCommand C# (CSharp) Method

StartApimImportWizardCommand() private method

Initializes a new instance of the StartApimImportWizardCommand class. Adds our command handlers for menu (commands must exist in the command table file)
private StartApimImportWizardCommand ( Microsoft.VisualStudio.Shell.Package package ) : System
package Microsoft.VisualStudio.Shell.Package Owner package, not null.
return System
        private StartApimImportWizardCommand(Package package)
        {
            if (package == null)
            {
                throw new ArgumentNullException("package");
            }

            this.package = package;

            OleMenuCommandService commandService = this.ServiceProvider.GetService(typeof(IMenuCommandService)) as OleMenuCommandService;
            if (commandService != null)
            {
                var menuCommandID = new CommandID(CommandSet, CommandId);
                var menuItem = new OleMenuCommand(this.MenuItemCallback, menuCommandID);
                menuItem.BeforeQueryStatus += MenuItem_BeforeQueryStatus;
                commandService.AddCommand(menuItem);
            }
        }