AppVeyor.UI.Services.CommandManagerServiceService.RegisterCommand C# (CSharp) Method

RegisterCommand() public method

public RegisterCommand ( Microsoft.VisualStudio.Shell.OleMenuCommand command ) : void
command Microsoft.VisualStudio.Shell.OleMenuCommand
return void
        public void RegisterCommand(OleMenuCommand command)
        {
            if (_registeredCommands.SingleOrDefault(
                cmd => cmd.CommandID.Guid.Equals(command.CommandID.Guid) &&
                    cmd.CommandID.ID.Equals(command.CommandID.ID)) == null)
            {
                _registeredCommands.Add(command);
            }
        }