Hi there,
recently i went through updating all my nuget packages and it was quite the journey.
Im using the asb-transport.exe tool to create all the subscriptions to the endpoints. I noticed Topic bundle-1 isnt created anymore. Just new topics per event/command. I do notice the subscriptions are still valid.
In my net8 azure web app I noticed i needed to change a little bit in order to have my command send out. In porogram.cs i added var transport = new AzureServiceBusTransport(connString, TopicTopology.Default);
var routing = endpointConfiguration.UseTransport(transport);
routing.RouteToEndpoint(
typeof(RewriteCommand),
“Adapter.OpenAi” // The destination endpoint that should handle this command
);
And the message where send out to the correct endpoint.
In my azure function isolated worker that receive the command i also send an Event withing the same handler. However, when doing so i receive the error that it cannot find bundle-1 anymore when using: await context.Publish(StoryOneShotCreatedEvent);
In my azure function program.cs i see that Transport is readonly, so i cannot change TopicTopology .I have tried setting up the routing like this
configuration.Routing.RouteToEndpoint(
typeof(StoryOneShotCreatedEvent),
“Adapter.WebApi”
);
But it seems like im still missing something. Please advice.
Btw If I do it dirty like this:
var options = new SendOptions();
options.DoNotEnforceBestPractices();
await context.Send(StoryOneShotCreatedEvent, options);
It seems like the event is send and received by other endpoint but obviously i would rather not do this.