public void AddFileSender(FileStorageConfig directory, string queueName, Action <SendMessageModule> config) { var module = new SendMessageModule((context, s) => new FileQueueWriterFactory(directory, context.Resolve <IEnvelopeStreamer>()), directory.AccountName, queueName); config(module); _funqlets += module.Configure; }
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); _modules += module.Configure; }
public void AddMemorySender(string queueName, Action <SendMessageModule> config) { var module = new SendMessageModule((context, s) => new MemoryQueueWriterFactory(context.Resolve <MemoryAccount>()), "memory", queueName); config(module); _funqlets += module.Configure; }