--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/1d1ae2f5-e964-470b-bb73-da6324c5e062%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Why would you need IBus injected, your message consume methods all get a ConsumeContext, which has all the methods on IBus you could need. I highly recommend not injecting IBus to your consumers for that very reason.
On Mon, Aug 17, 2015 at 2:59 AM, Kyle Bradley <kbrad...@gmail.com> wrote:
HiI'm trying to add a consumer after the bus instance has been created. The reason being is that the consumer I create needs the IBus to be injected.Therefore, I am trying to use the "ConnectConsumer" method on the buscontrol, but this doesn't hit the hander.The code can be seen below.The commented out code e.Consumer is hit, whereas the bus.ConnectConsumer doesn't cause the handler to be hit.I am new to MassTransit and I know that MassTransit 3 is in beta still.Is it a configuration issue or a feature still needed to be added to masstransit 3.ThanksKyle
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-discuss+unsub...@googlegroups.com.
The reason for this, is that the consumer is a wrapper for the command handler, which then calls an action on the aggregate that fires an event. This event is published on the bus.
Therefore, I want to inject the IBus at the last stage rather than pass it through the different layers.ConsumeContext doesn't seem to implement the IBus interfaces as it did before. Not sure how best to do this.Any advice would be appreciated, thanks.
On Monday, 17 August 2015 17:13:48 UTC+2, Chris Patterson wrote:
Why would you need IBus injected, your message consume methods all get a ConsumeContext, which has all the methods on IBus you could need. I highly recommend not injecting IBus to your consumers for that very reason.
On Mon, Aug 17, 2015 at 2:59 AM, Kyle Bradley <kbrad...@gmail.com> wrote:
HiI'm trying to add a consumer after the bus instance has been created. The reason being is that the consumer I create needs the IBus to be injected.Therefore, I am trying to use the "ConnectConsumer" method on the buscontrol, but this doesn't hit the hander.The code can be seen below.The commented out code e.Consumer is hit, whereas the bus.ConnectConsumer doesn't cause the handler to be hit.I am new to MassTransit and I know that MassTransit 3 is in beta still.Is it a configuration issue or a feature still needed to be added to masstransit 3.ThanksKyle
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/1d1ae2f5-e964-470b-bb73-da6324c5e062%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "masstransit-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to masstransit-dis...@googlegroups.com.
To post to this group, send email to masstrans...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/masstransit-discuss/c3c19b8e-11fc-44b0-bd0c-1c4bf6ae40fe%40googlegroups.com.