mikehadlow/EasyNetQ — pull request #39 by danielwertheim (2012-09-25 13:55:18+00:00)
Title: AutoSubscriber

Simple AutoSubscriber with support for:

```c#
public class Consumer : IConsume, IConsume
{
public void Consume(MessageA message) {}

[ConsumerInfo(SubscriptionId="MyFixedSubscription")]
public void Consume(MessageB message) {}
}
```

You can hook in your IoC via: `autosubscriber.SubscriberFn = t => myIoc.Resolve(t);`

You can control the generation of subscription ids via: `autosubscriber.SubscriptionIdFn = c => "FooFooFoo";`

By default it will generate a GUID, but perhaps a combo of `Process name` or `AppDomain name` and `Consumer type full name` would be ok?

//Daniel