protected override void ProcessRecord() { try { base.ProcessRecord(); PersistentVM persistentVM = PersistentVMHelper.LoadStateFromFile(this.Path); base.WriteObject(persistentVM, true); } catch (Exception exception1) { Exception exception = exception1; base.WriteError(new ErrorRecord(exception, string.Empty, ErrorCategory.CloseError, null)); } }
internal void ExecuteCommand() { PersistentVM role = PersistentVMHelper.LoadStateFromFile(Path); WriteObject(role, true); }