-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaking Change in MqttClientTcpOptions with 4.3.5.1141 #2005
Comments
The origin of this issue was adding support for unix sockets which exposes the base remote endpoint instead of a dedicated server and port property. In your case you must use a DnsEndPoint for the RemoteEndpoint as the WithTcpServer does. I restored the Server and Port properties because it would lead to a breaking change but unfortunately the behavior of these properties is still different. I will have a look how to restore the behavior... |
I restored the old behavior. Please test build 4.3.5.1148 from MyGet and let me know if it works. |
yep, it works. Thanks for the quick update!! BTW, we will keep the other workaround of casting the RemoteEndpoint to DnsEndPoint to avoid the obsolete warning. |
Was this actually published in a release already? Because I don't see a 1148 release, the latest for me is a 1141 release. |
It was released a few seconds ago. |
With 4.3.5.1141
MqttClientTcpOptions
Server
andPort
are marked as obsolete, however those properties return null.We are extending the
MqttClientOptionsBuilder
with more.WithXXX
methods, to verify those methods we have unit tests like.The last two asserts fail with Null.
I tried to use
RemoteEndpoint
instead, but it does not include properties forServer
andPort
Probably related, when connecting the traces show
Trying to connect with server 'Unspecified/localhost:1883'
(note the Unspecified, as this seems to beRemoteEndpoint.ToString()
)This change is not mentioned in the Release Notes
The text was updated successfully, but these errors were encountered: