Reputation: 1284
trying to start with nservicebus. My intent is to at least get the log message that the endpoint is trying to subscribe. So I created message handler for message like
namespace BusStop.Billing
{
public class OrderAcceptedHandler : IHandleMessages<OrderAccepted>
{
public void Handle(OrderAccepted message)
and the contract OrderAccepted is defined as
namespace BusStop.Sales.Contracts
{
public class OrderAccepted : IMessage
{
As per NServiceBus documentation, it should be sufficient to modify the subscriber .config file
<UnicastBusConfig>
<MessageEndpointMappings>
<add Messages="BusStop.Sales.Contracts" Endpoint="BusStop.Backend"/>
however when i start subscriber host NServiceBus.Host.exe
I am not getting log message that it is trying to subscribe nor there is subscription request message in busstop.backend queue.
Thanks.
Upvotes: 0
Views: 269
Reputation: 1284
Ok, so the problem was you have to also mark your message with IEvent
interface, because this is
Upvotes: 1