예제 #1
0
        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;
        }
예제 #2
0
        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;
        }
예제 #3
0
        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;
        }