public virtual object Execute(CommandContext commandContext) { var incidentContext = new IncidentContext(); incidentContext.ExecutionId = _execution.Id; IncidentEntity.CreateAndInsertIncident("foo", incidentContext, null); return(null); }
public virtual IIncident CreateIncident(IncidentContext context, string message) { var newIncident = IncidentEntity.CreateAndInsertIncident(IncidentHandlerType, context, message); if (!ReferenceEquals(context.ExecutionId, null)) { newIncident.CreateRecursiveIncidents(); } return(newIncident); }
public void HandleIncident(IncidentContext context, string message) { IncidentEntity.CreateAndInsertIncident(incidentType, context, message); }