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

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

Undoes this command.
public Undo ( ) : void
Результат void
        public override void Undo()
        {
            try
            {
                switch (this.commandType)
                {
                    case ModuleCommandType.Add:
                        this.ExecuteRemove(this.service);
                        break;
                    case ModuleCommandType.Modify:
                        this.ExecuteModify(this.newServiceSettings, this.service);
                        break;
                    case ModuleCommandType.Remove:
                        this.ExecuteAdd(this.service);
                        break;
                    default:
                        throw ExceptionHelper.GetModuleException("ID400019", null, null);
                }
            }
            catch (Exception e)
            {
                this.HandleException(e);
            }
        }