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; }
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); } }