Closed xljiulang closed 4 days ago
I continued to refactor the MQTTnet.AspNetCore project https://github.com/dotnet/MQTTnet/compare/master...xljiulang:MQTTnet:master
IMqttServerBuilder AddMqttServer(IServiceCollection)
and IMqttClientBuilder AddMqttClient(IServiceCollection)
.
Describe the feature request
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionFactory
asIConnectionFactory
service with DI.CreateClientAdapter
method of theIMqttClientAdapterFactory
interface toValueTask<IMqttChannelAdapter>
CreateClientAdapterAsync.MqttClientConnectionContextFactory
injectsIConnectionFactory
and useIConnectionFactory
to createConnectionContext
.Which project is your feature request related to?
Describe the solution you'd like
Hi @chkr1011 I have tried to complete the modification at https://github.com/xljiulang/MQTTnet/commit/897c551d8cb9ef0e6d47380f4a0460c108730b31. At present, I feel that the only shortcoming is that SocketConnectionFactory only supports IPEndPoint. There are still flaws in my implementation of compatible processing of DnsEndPoint.
Finally, is it necessary to make a pull request for my changes?