Esempio n. 1
0
 public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1)
 {
     return(new RedisMqServer(new BasicRedisClientManager())
     {
         RetryCount = retryCount,
         ResponseFilter = r => { host.OnEndRequest(); return r; }
     });
 }
Esempio n. 2
0
 public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1)
 {
     return(new RabbitMqServer
     {
         RetryCount = retryCount,
         ResponseFilter = r => { host.OnEndRequest(); return r; }
     });
 }
Esempio n. 3
0
 public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1)
 {
     return(new RabbitMqServer(connectionString: Config.RabbitMQConnString)
     {
         RetryCount = retryCount,
         ResponseFilter = r => { host.OnEndRequest(null); return r; }
     });
 }
        public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1)
        {
            var assembly   = typeof(AzureServiceBusMqServerPostMessageTests).Assembly;
            var path       = new Uri(assembly.CodeBase).LocalPath;
            var configFile = Path.Combine(Path.GetDirectoryName(path), "settings.config");

            var connectionString = new TextFileSettings(configFile).Get("ConnectionString");

            return(new ServiceBusMqServer(connectionString)
            {
                ResponseFilter = r => { host.OnEndRequest(null); return r; }
            });
        }
Esempio n. 5
0
 public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1)
 {
     return new RedisMqServer(new BasicRedisClientManager())
     {
         RetryCount = retryCount,
         ResponseFilter = r => { host.OnEndRequest(); return r; }
     };
 }
Esempio n. 6
0
 public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1)
 {
     return new RabbitMqServer
     {
         RetryCount = retryCount,
         ResponseFilter = r => { host.OnEndRequest(); return r; }
     };
 }