the PUBLISH is not working .
what is change in this version?
if i am following the documentation nothing should change .
please help.
the only think that is change is that bus changed to ImeassageSession
.
this is where i send from
CreatedEvent(IMessageSession context)
{
_context = context;
}
public void Handle(AccountCreatedEvent @event)
{
_context .Publish(e =>
{
e.Id = @event.Account.Id;
e.ParentAccountId = @event.Account.ParentAccountId;
e.Title = @event.Account.Title;
e.ReferrerId = @event.Account.Referral.Id;
e.ExtraCredits = @event.ExtraCredits;
}).GetAwaiter().GetResult();
}
this is the handler
public async Task Handle(IAccountCreatedEvent message, IMessageHandlerContext context)
{
Some Code…
}
and this is the line in the handler app.config
i am sending the message from endpoint called “MaaS.Web”
into end point called “Maas.Billing”