Esempio n. 1
0
        public DefaultMessageBus(IEnumerable <IMessageBroker> messageBrokers, IHostNameProvider hostNameProvider)
        {
            _hostNameProvider = hostNameProvider;
            _messageBroker    = messageBrokers.FirstOrDefault();

            Logger = NullLogger.Instance;
        }
 public RabbitMQMessageBusBroker(IRabbitMQConnectionProvider rabbitMQConnectionProvider, IHostNameProvider hostNameProvider)
 {
     _rabbitMQConnectionProvider = rabbitMQConnectionProvider;
     _hostNameProvider           = hostNameProvider;
     _connectionString           = _rabbitMQConnectionProvider.GetConnectionString(ConnectionStringKey);
     _connection = _rabbitMQConnectionProvider.GetConnection(_connectionString);
 }
Esempio n. 3
0
        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        public TcpSmtpVerifier(IHostNameProvider a_hostNameProvider)
        {
            if (a_hostNameProvider == null)
            {
                throw new ArgumentNullException("a_hostNameProvider");
            }

            m_hostNameProvider = a_hostNameProvider;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="T:System.Object"/> class.
        /// </summary>
        public TcpSmtpVerifier(IHostNameProvider a_hostNameProvider)
        {
            if (a_hostNameProvider == null)
             {
            throw new ArgumentNullException("a_hostNameProvider");
             }

             m_hostNameProvider = a_hostNameProvider;
        }
Esempio n. 5
0
        public Worker(ShellSettings shellSettings, IHostNameProvider hostNameProvider) {
            _hostNameProvider = hostNameProvider;
            _shellSettings = shellSettings;

            var tablePrefix = _shellSettings.DataTablePrefix;
            if (!String.IsNullOrWhiteSpace(tablePrefix)) {
                tablePrefix += "_";
            }

            commandText = String.Format(commandText, tablePrefix);

            Logger = NullLogger.Instance;
        }
Esempio n. 6
0
        public Worker(ShellSettings shellSettings, IHostNameProvider hostNameProvider)
        {
            _hostNameProvider = hostNameProvider;
            _shellSettings    = shellSettings;

            var tablePrefix = _shellSettings.DataTablePrefix;

            if (!String.IsNullOrWhiteSpace(tablePrefix))
            {
                tablePrefix += "_";
            }

            commandText = String.Format(commandText, tablePrefix);

            Logger = NullLogger.Instance;
        }
Esempio n. 7
0
 public RemoteTenantConfig(IConnectionStringProviderRepository connectionStringProvider, IHostNameProvider hostNameProvider)
 {
     _connectionStringProvider = connectionStringProvider;
     _hostNameProvider         = hostNameProvider;
 }
Esempio n. 8
0
 public S3StorageProvider(IHostNameProvider hostNameProvider)
 {
     BucketName   = S3Utilities.GetBucketName(hostNameProvider.GetHostName());
     ClientHelper = new S3ClientHelper(Config.AwsKey, Config.AwsSecretKey);
 }
Esempio n. 9
0
        public DefaultMessageBus(IEnumerable<IMessageBroker> messageBrokers, IHostNameProvider hostNameProvider) {
            _hostNameProvider = hostNameProvider;
            _messageBroker = messageBrokers.FirstOrDefault();

            Logger = NullLogger.Instance;
        }
Esempio n. 10
0
 public S3JobAttachmentDataRepository(IHostNameProvider hostNameProvider) : base(hostNameProvider)
 {
 }
 public EntityIdProviderFromWebService(IHostNameProvider configDomainProvider)
 {
     _configDomainProvider = configDomainProvider;
 }