Atomia.Provisioning.Modules.Folders.Commands.FoldersCommand.Execute C# (CSharp) Метод

Execute() публичный Метод

Executes this command.
public Execute ( ) : void
Результат void
        public override void Execute()
        {
            try
            {
                switch (this.commandType)
                {
                    case ModuleCommandType.Add:
                        this.ExecuteAdd(this.service);
                        break;
                    case ModuleCommandType.Modify:
                        this.ExecuteModify(this.service, this.newServiceSettings);
                        break;
                    case ModuleCommandType.Remove:
                        this.ExecuteRemove(this.service);
                        break;
                    case ModuleCommandType.List:
                        this.ExecuteList(this.service, this.listDepth);
                        break;
                    default:
                        throw ExceptionHelper.GetModuleException("ID400019", null, null);
                }

                this.status = ModuleCommandStatus.Executed;
            }
            catch (Exception e)
            {
                this.HandleException(e);
            }
        }