예제 #1
0
 public ToolConfigutaionApplication(ICheckConfigRepository repository, IProgramLog <ILogger> programLog, IExceptionLog <ILogger> errorLog, IpcServiceClient <ICheckConfigServiceContract> client)
 {
     Repository  = repository;
     _programLog = programLog;
     _client     = client;
     _errorLog   = errorLog;
 }
예제 #2
0
 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;
 }
예제 #4
0
 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;
 }
예제 #5
0
        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);
        }
예제 #6
0
        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;
 }
예제 #8
0
 public CheckConfigRepository(IExceptionLog <ILogger> errorLog)
 {
     _errorLog = errorLog;
 }
예제 #9
0
 public CheckTargetRepository(IExceptionLog <ILogger> errorLog, IProgramLog <ILogger> programLog)
 {
     _errorLog   = errorLog;
     _programLog = programLog;
 }
예제 #10
0
 public ManjuuExceptionFilter(IExceptionLog <ILogger> loggger)
 {
     _logger = loggger;
 }
 public ExceptionLogFacade(IExceptionLog exceptionLog)
 {
     _exceptionLog = exceptionLog;
 }