public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1) { return(new RedisMqServer(new BasicRedisClientManager()) { RetryCount = retryCount, ResponseFilter = r => { host.OnEndRequest(); return r; } }); }
public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1) { return(new RabbitMqServer { RetryCount = retryCount, ResponseFilter = r => { host.OnEndRequest(); return r; } }); }
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; } }); }
public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1) { return new RedisMqServer(new BasicRedisClientManager()) { RetryCount = retryCount, ResponseFilter = r => { host.OnEndRequest(); return r; } }; }
public override IMessageService CreateMqServer(IAppHost host, int retryCount = 1) { return new RabbitMqServer { RetryCount = retryCount, ResponseFilter = r => { host.OnEndRequest(); return r; } }; }