Skip to content

Instantly share code, notes, and snippets.

@TheCloudlessSky
Created November 21, 2012 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TheCloudlessSky/4126884 to your computer and use it in GitHub Desktop.
Save TheCloudlessSky/4126884 to your computer and use it in GitHub Desktop.
var clientManager = new PooledRedisClientManager(redisConnection);
var messageProducerFactory = new RedisMessageFactory(clientManager);
Bind<IMessageProducer>()
.ToMethod(_ => messageProducerFactory.CreateMessageProducer())
.InRequestScope();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment