Exemplo n.º 1
0
 public Sender(FacadeFactory factory, PecParams pars, string loggerName, Action <string> sendMessage, Func <Exception, string> fullStacktrace, Func <bool> cancelRequest)
 {
     _factory        = factory;
     _loggerName     = loggerName;
     _parameters     = pars;
     _sendMessage    = sendMessage;
     _fullStacktrace = fullStacktrace;
     _cancelRequest  = cancelRequest;
 }
Exemplo n.º 2
0
        public Receiver(MailStoreFacade facade, PecParams pars, string loggerName, Action <string> sendMessage, Func <Exception, string> fullStacktrace, Func <bool> cancelRequest)
        {
            _storeFacade    = facade;
            _parameters     = pars;
            _loggerName     = loggerName;
            _sendMessage    = sendMessage;
            _fullStacktrace = fullStacktrace;
            _cancelRequest  = cancelRequest;

            if (!Path.IsPathRooted(_parameters.DropFolder))
            {
                _parameters.DropFolder = Path.Combine(AppDomain.CurrentDomain.BaseDirectory, _parameters.DropFolder);
            }
        }