Beispiel #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);
 }
        /// <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;
        }
        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;
        }
Beispiel #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;
        }
Beispiel #7
0
 public RemoteTenantConfig(IConnectionStringProviderRepository connectionStringProvider, IHostNameProvider hostNameProvider)
 {
     _connectionStringProvider = connectionStringProvider;
     _hostNameProvider         = hostNameProvider;
 }
Beispiel #8
0
 public S3StorageProvider(IHostNameProvider hostNameProvider)
 {
     BucketName   = S3Utilities.GetBucketName(hostNameProvider.GetHostName());
     ClientHelper = new S3ClientHelper(Config.AwsKey, Config.AwsSecretKey);
 }
Beispiel #9
0
        public DefaultMessageBus(IEnumerable<IMessageBroker> messageBrokers, IHostNameProvider hostNameProvider) {
            _hostNameProvider = hostNameProvider;
            _messageBroker = messageBrokers.FirstOrDefault();

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