We’re converting our .NET Framework project to .NET Core and noticed that the SqlServerTransport in .NET Core no longer implements IMessageDrivenSubscriptionTransport. As a result, we are no longer able to register publishers with the SqlServerTransport.
.NET Framework 4.7.1 code porting to .NET Core 3.1
var transport = endpointConfiguration.UseTransport();
transport.Routing().RegisterPublisher(
assemblyRoute.AssemblyOfMessage, assemblyRoute.EndpointName);
RegisterPublish Definition:
public static void RegisterPublisher(this NServiceBus.RoutingSettings routingSettings, System.Reflection.Assembly assembly, string publisherEndpoint)
where T : NServiceBus.Transport.TransportDefinition, NServiceBus.Routing.IMessageDrivenSubscriptionTransport
The NServiceBus.Routing.IMessageDrivenSubscriptionTransport condition is no longer satisfied in .NET Core when trying to RegisterPublisher for a SQLServerTransport RouteSetting.
I’m curious what I should be doing?
(1) Was this intended/deprecated?
(a) Should/can I even perform this in .NET Core? If so, how?
(b) If this is not allowed going forward, what can I do?
Thank You in Advance!
Arthur