public void AddAzureSender(IAzureStorageConfig config, string queueName, Action<SendMessageModule> configure)
 {
     var module = new SendMessageModule((context, endpoint) => new AzureQueueWriterFactory(config, context.Resolve<IEnvelopeStreamer>()), config.AccountName, queueName);
     configure(module);
     _funqlets += module.Configure;
 }
Exemplo n.º 2
0
 public void AddSqlServerSender(ISqlStorageConfig config, string queueName, Action<SendMessageModule> configure)
 {
     var module = new SendMessageModule((context, endpoint) => new SqlQueueWriterFactory(config, context.Resolve<IEnvelopeStreamer>()), config.ConnectionString, queueName);
     configure(module);
     _modules += module.Configure;
 }