question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Decouple connection middleware from MQTTnet.AspnetCore

See original GitHub issue

Describe the feature request

As part of .NET Core 3.0, we’ve exposed some client /server networking abstractions (see https://github.com/aspnet/AspNetCore/issues/10308) that were made to serve as a foundation for projects like this build on top of. The MQTT layer should support a very thin way to wire up the MqttConnectionHandler with a way to write logic to handle messages (decoupled from the underlying transport).

MQTTnet.AspnetCore should expose the web specific wire up.

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
JanEggerscommented, Sep 18, 2019

@davidfowl im happy to adopt just let me know when there are shipped bits / things I can use without installing a preview version of vs / sdk

1reaction
JanEggerscommented, Sep 18, 2019

@davidfowl also setup looks a bit hacky. you should really rewrite that stuff to depend on service collection and maybe generic host.

so you can:

new HostBuilder() .AddConnections() .AddTcp() or AddWebSocket() or AddKestrel() or AddTransportXXXX .AddTls() .AddMqtt() .Build() .RunAsync()

Read more comments on GitHub >

github_iconTop Results From Across the Web

Decouple connection middleware from MQTTnet.AspnetCore
Describe the feature request As part of .NET Core 3.0, we've exposed some client /server networking abstractions (see ...
Read more >
Server · dotnet/MQTTnet Wiki
MQTTnet is a high performance .NET library for MQTT based communication. It provides a MQTT client and a MQTT server (broker). The implementation...
Read more >
IoTSharp/MQTTnet.AspNetCore.Routing
This addon to MQTTnet provides the ability to define controllers and use attribute-based routing against message topics in a manner that is very...
Read more >
Factory-based middleware activation in ASP.NET Core
Learn how to use strongly-typed middleware with a factory-based activation implementation in ASP.NET Core.
Read more >
how to use GetConnectedClientsAsync from MQTTnet. ...
I just want to show list of connected cliend in my controller and I found that GetConnectedClientsAsync method can be used. But I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found