Exemplo n.º 1
0
            public virtual object Execute(CommandContext commandContext)
            {
                var incidentContext = new IncidentContext();

                incidentContext.ExecutionId = _execution.Id;

                IncidentEntity.CreateAndInsertIncident("foo", incidentContext, null);

                return(null);
            }
Exemplo n.º 2
0
        public virtual IIncident CreateIncident(IncidentContext context, string message)
        {
            var newIncident = IncidentEntity.CreateAndInsertIncident(IncidentHandlerType, context, message);

            if (!ReferenceEquals(context.ExecutionId, null))
            {
                newIncident.CreateRecursiveIncidents();
            }

            return(newIncident);
        }
Exemplo n.º 3
0
 public void HandleIncident(IncidentContext context, string message)
 {
     IncidentEntity.CreateAndInsertIncident(incidentType, context, message);
 }