public ToolConfigutaionApplication(ICheckConfigRepository repository, IProgramLog <ILogger> programLog, IExceptionLog <ILogger> errorLog, IpcServiceClient <ICheckConfigServiceContract> client) { Repository = repository; _programLog = programLog; _client = client; _errorLog = errorLog; }
public MachineApplication(ICheckTargetRepository repository, IProgramLog <ILogger> programLog, IExceptionLog <ILogger> errorLog, IpcServiceClient <ICheckTargetServiceContract> client) { Repository = repository; _programLog = programLog; _errorLog = errorLog; _client = client; }
public ExceptionLogged(Int32 id, IExceptionLog exceptionLog) { Id = id; Exception = exceptionLog.Exception; Description = exceptionLog.Description; MethodName = exceptionLog.MethodName; StatusCode = exceptionLog.StatusCode; Host = exceptionLog.Host; }
public PingHostedService(IProgramLog <ILogger> programLog, IExceptionLog <ILogger> errorLog, IToolConfigApplication toolConfigApplication, ICheckTargetRepository repository, ISchedulerFactory schedulerFactory, IIpcServiceHost ipcServiceHost) { _programLog = programLog; _errorLog = errorLog; _toolConfigApplication = toolConfigApplication; this._schedulerFactory = schedulerFactory; _ipcServiceHost = ipcServiceHost; _repository = repository; }
public Boolean LogException(IExceptionLog exceptionLog) { Tuple <String, String> exceptionMessages = ExceptionMessages(exceptionLog.Exception); TTraceLog traceLogEntity = LogTraceCore(exceptionLog.Description, exceptionLog.MethodName, exceptionLog.StatusCode); if (traceLogEntity != null) { ExceptionLogged exceptionLogged = new ExceptionLogged(InsertAsync(traceLogEntity, exceptionMessages.Item1, exceptionMessages.Item2), exceptionLog); SendEmailAsync(exceptionLogged); return(true); } return(false); }
public async Task <Boolean> LogExceptionAsync(IExceptionLog exceptionLog) { Task <Tuple <String, String> > exceptionMessagesTask = new Task <Tuple <String, String> >(() => ExceptionMessages(exceptionLog.Exception)); await exceptionMessagesTask; Tuple <String, String> exceptionMessages = exceptionMessagesTask.Result; TTraceLog traceLogEntity = LogTraceCore(exceptionLog.Description, exceptionLog.MethodName, exceptionLog.StatusCode); if (traceLogEntity != null) { IExceptionLogged exceptionLogged = new ExceptionLogged(InsertAsync(traceLogEntity, exceptionMessages.Item1, exceptionMessages.Item2), exceptionLog) as IExceptionLogged; Task sendEmailTask = new Task(() => { SendEmailAsync(exceptionLogged); }); await sendEmailTask; return(true); } return(false); }
public CustomExceptionFilter() { _iExceptionLog = ExceptionLog.ExceptionLog.GetInstance; }
public CheckConfigRepository(IExceptionLog <ILogger> errorLog) { _errorLog = errorLog; }
public CheckTargetRepository(IExceptionLog <ILogger> errorLog, IProgramLog <ILogger> programLog) { _errorLog = errorLog; _programLog = programLog; }
public ManjuuExceptionFilter(IExceptionLog <ILogger> loggger) { _logger = loggger; }
public ExceptionLogFacade(IExceptionLog exceptionLog) { _exceptionLog = exceptionLog; }