public bool Compensate(CommandScriptStepAudit audit, CommandScript commandScript) { _log.Debug("CreateServiceCommand Compensating..."); ServiceHandle serviceHandle; if (audit.Result.TryGetValue(out serviceHandle)) { serviceHandle.Dispose(); } return true; }
public bool Compensate(CommandScriptStepAudit audit, CommandScript commandScript) { _log.Debug("CreateServiceCommand Compensating..."); ServiceHandle serviceHandle; if (audit.Result.TryGetValue(out serviceHandle)) { serviceHandle.Dispose(); } return(true); }
public bool Compensate(CommandScriptStepAudit audit, CommandScript commandScript) { var started = audit.Result.Get <bool>("started"); if (started) { var serviceHandle = audit.Result.Get <ServiceHandle>(); var hostControl = audit.Result.Get <HostControl>(); return(serviceHandle.Stop(hostControl)); } return(true); }
public bool Compensate(CommandScriptStepAudit audit, CommandScript commandScript) { var started = audit.Result.Get<bool>("started"); if (started) { var serviceHandle = audit.Result.Get<ServiceHandle>(); var hostControl = audit.Result.Get<HostControl>(); return serviceHandle.Stop(hostControl); } return true; }
public bool Compensate(CommandScriptStepAudit audit, CommandScript commandScript) { // we can't unstop a service return(false); }
public bool Compensate(CommandScriptStepAudit audit, CommandScript commandScript) { // we can't unstop a service return false; }
public bool Compensate(CommandScriptStepAudit audit, CommandScript commandScript) { // we can't really reload an AppDomain now, can we? return(true); }
public bool Compensate(CommandScriptStepAudit audit, CommandScript commandScript) { // we can't really reload an AppDomain now, can we? return true; }