Aurelia.DotNet.VSIX.Commands.GenerateAttribute.GenerateAttribute C# (CSharp) Method

GenerateAttribute() private method

Initializes a new instance of the GenerateAttribute class. Adds our command handlers for menu (commands must exist in the command table file)
private GenerateAttribute ( AsyncPackage package, OleMenuCommandService commandService, DTE2 dte ) : System
package AsyncPackage Owner package, not null.
commandService OleMenuCommandService Command service to add command to, not null.
dte DTE2
return System
        private GenerateAttribute(AsyncPackage package, OleMenuCommandService commandService, DTE2 dte)
        {
            _dte = dte;
            this.package = package ?? throw new ArgumentNullException(nameof(package));
            commandService = commandService ?? throw new ArgumentNullException(nameof(commandService));

            var menuCommandID = new CommandID(PackageGuids.guidAureliaCommandsSet, PackageIds.cmdGenerateAttribute);
            var menuItem = new OleMenuCommand(this.ExecuteAsync, menuCommandID);
            menuItem.BeforeQueryStatus += MenuItem_BeforeQueryStatus;
            commandService.AddCommand(menuItem);
        }
        private void MenuItem_BeforeQueryStatus(object sender, EventArgs e)