public HareDuClientSettingsImpl(string rmqServerUrl, bool enableLogger, string loggerName,
                                 HareDuCredentials credentials, bool enableTransientRetry, int retryLimit)
 {
     RabbitMqServerUrl      = rmqServerUrl;
     Credentials            = credentials;
     LoggerSettings         = new HareDuLoggerSettingsImpl(enableLogger, loggerName);
     TransientRetrySettings = new HareDuTransientRetrySettingsImpl(enableTransientRetry, retryLimit);
 }
Exemple #2
0
 public HareDuClientSettingsImpl(string rmqServerUrl, bool enableLogger, ILog logger, string loggerName,
                                 TimeSpan timeout, string username, string password, bool enableTransientRetry, int retryLimit)
 {
     RabbitMqServerUrl      = rmqServerUrl;
     Timeout                = timeout;
     Credentials            = new HareDuCredentialsImpl(username, password);
     LoggerSettings         = new HareDuLoggerSettingsImpl(enableLogger, loggerName, logger);
     TransientRetrySettings = new HareDuTransientRetrySettingsImpl(enableTransientRetry, retryLimit);
 }