- Notifications
You must be signed in to change notification settings - Fork1.1k
Refactoring MQTTnet.AspNetCore#2103
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Open
xljiulang wants to merge91 commits intodotnet:masterChoose a base branch fromxljiulang:master
base:master
Could not load branches
Branch not found:{{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline, and old review comments may become outdated.
Uh oh!
There was an error while loading.Please reload this page.
Open
Changes from1 commit
Commits
Show all changes
91 commits Select commitHold shift + click to select a range
897c551 Use IConnectionFactory to create ConnectionContext to replace SocketC…
xljiulangf38cca3 Refactoring AspNetMQTT
xljiulangd8c94bd Separate AspNetCoreMqttServerAdapter from MqttConnectionHandler
xljiulang73502e4 TryAdd IConnectionFactory as Singleton
xljiulang3a641ab Add some remarks
xljiulang91763ae Add AspNetCoreMqttNetLogger
xljiulang9c14222 Delayed start of AspNetCoreMqttServer
xljiulang2372352 Using fields to cache IHttpContextFeature
xljiulang8d96e19 Update Server_ASP_NET_Samples
xljiulangad5c798 Use ActivatorUtilities to create TMQttServerWrapper
xljiulang7f95f02 Add IMqttServerBuilder
xljiulang7b44ea2 Add IMqttClientBuilder
xljiulang73c1365 Conditionally load SocketConnectionFactoryAssembly
xljiulang2c10d2c Add LICENSE
xljiulang6cda003 DynamicallyAccessedMembers
xljiulangfaaadbd Inject IOptions<MqttServerOptionsBuilder>
xljiulang13c9198 Change the namespace to MQTTnet.AspNetCore
xljiulangb8d8abb await for_aspNetCoreMqttServer.StartAsync
xljiulang64ed638 enable Nullable
xljiulang3526212 Always dispose _connection of AspNetCoreMqttChannelAdapter
xljiulangb4b0b04 UseTls
xljiulangd9e02ce Restore the IMqttClientAdapterFactory interface
xljiulangb5019bd Calculate the property values when constructing MqttChannel
xljiulangc206a4a MqttServerChannelAdapter is modified to inherit MqttChannel
xljiulang0a216a9 Add ClientConnectionContext.WebSocket
xljiulang580257a Add LICENSE
xljiulang4f6b7ae Add support for CreateLowLevelMqttClient
xljiulangb25159b AddMqttClient: Use AspNetCoreMqttClientAdapterFactory as the default …
xljiulangecb404f Check that UseMqtt() and MapMqtt() are used.
xljiulang858a914 AspNetCoreMqttServerAdapter: Logging when MqttServerOptions are ignored
xljiulangfedb631 Add IMqttServerBuilder.AddMqttServerAdapter() extensions
xljiulang67239cd Register MqttServerOptions and MqttServerStopOptions as services
xljiulange03b9b1 IMqttBuilder: Add IMqttBuilder.UseAspNetCoreMqttNetLogger() extension
xljiulang014a50b Remove some dead code.
xljiulangad62877 Apply the properties of MqttClientTcpOptions to the Socket
xljiulangc49beb0 TlsConnectionFeature supports passing in ClientCertificate
xljiulang4c55368 Add support for MqttPacketInspector
xljiulang34a4db2 Add route syntax for pattern parameter.
xljiulang6dc18e1 Add KestrelServerOptions.ListenMqtt() extensions.
xljiulang67dfda4 Optimize the implementation of ListenMqtt.
xljiulang5813a13 Adapt MqttServerTlsTcpEndpointOptions to HttpsConnectionAdapterOptions
xljiulang7628614 Compatible with the default server certificate.
xljiulang7d8562a Supports both MQTT and MQTT over WebSocket on a ConnectionContext.
xljiulang1bd5949 MqttProtocols adds WebSocket item.
xljiulangc4d9a22 Make sure services.AddMqttServer() has been called before operating M…
xljiulang62313c8 Simplify MqttConnectionMiddleware
xljiulange087acb Improve the compatibility of wss connections.
xljiulangdb4614c Update UnixSocket sample.
xljiulangacf8ed7 Update benchmark
xljiulang457dcc1 Enhanced IOptions of MQTT ServiceOptions
xljiulang358c2c0 add IMqttServerBuilder.ConfigureMqttSocketTransport extension.
xljiulang02778aa Simplifying MqttOptionsFactory
xljiulangb46b357 Optimizing MqttChannel.SendPacketAsync
xljiulang38eb1c3 Check buffer IsEmpty.
xljiulangf953d6d Merge branch 'dotnet:master' into master
xljiulangef838f8 Register MqttClientFactory as a service.
xljiulangfcad255 Merge branch 'dotnet:master' into master
xljiulang72b42d5 MqttOptionsFactory.Build() -> MqttOptionsFactory.CreateOptions()
xljiulangb40c8a1 Add MqttBufferWriterPool
xljiulang4305ad7 Merge branch 'dotnet:master' into master
xljiulangcb68a13 Merged from the master branch.
xljiulanga2c014f Adapt the RemoteEndPoint property.
xljiulangdad4faa Add MqttBufferWriterPoolOptions
xljiulang6f60eae Add more conditions to the pool of MqttBufferWriterPoolOptions.
xljiulangcc64f95 Merge branch 'main'
xljiulang54f0b4d MqttBufferWriterPool: Implementing the IReadOnlyCollection interface.
xljiulangee4de82 ConfigureAwait(false)
xljiulangb708344 MqttChannel: adapt AllowPacketFragmentation option.
xljiulang13e8190 Fixed the issue that GetRemoteEndPoint did not use the remoteEndPoint…
xljiulang4bfd77d Add some unit tests.
xljiulang9d9dd44 Add more unit test.
xljiulang8b7c411 MqttBufferWriterPoolOptions: Renaming properties.
xljiulang8a3624d Rename and update benchmark.
xljiulang06f03cb Add AspNetCoreTestEnvironment to test environments.
xljiulang146b161 CreateTestEnvironment -> CreateMQTTnetTestEnvironment
xljiulang83148ca Remove Google's connection test to avoid Google being blocked by SNI …
xljiulang41af5c5 AspNetCoreTestEnvironment: Adapt logger.
xljiulangf94e17a wait with timeout.
xljiulangefcd6ab AspNetCoreTestEnvironment: Adjust all configurations to be consistent…
xljiulangb035659 MqttChannel: Exception handling remains consistent with MqttChannelAd…
xljiulang6171c81 CrossPlatformSocket_Tests: create a localhost web server for remote h…
xljiulang9a7a8bd Server-side adaptation of AllowPacketFragmentation options.
xljiulange01e5f3 Merge implementation of IsAllowPacketFragmentation.
xljiulangbffe065 Added UseLogger overloaded method and renamed an internal method.
xljiulangca5d13d Add some extension methods to IMqttChannelAdapter.
xljiulang8ceba5f Add IAspNetCoreMqttChannel and remove IAspNetCoreMqttChannelAdapter;
xljiulangb65c176 MapMqtt: Restricted to WebSocket transport protocol.
xljiulang51fb185 Adapt MqttServerTcpEndpointBaseOptions to the Socket accepted by kest…
xljiulang79f4f68 SocketOptionName.ReuseAddress can only be used for listening Socket s…
xljiulang7139431 Accurately detect the DualMode value of listenSocket.
xljiulang5c6e128 Merge branch 'dotnet:master' into master
xljiulangFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
MqttChannel: Exception handling remains consistent with MqttChannelAd…
…apter.
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitb0356594ce644c577c0fda483f1ba4d77b94f37d
There are no files selected for viewing
103 changes: 97 additions & 6 deletionsSource/MQTTnet.AspnetCore/Internal/MqttChannel.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
22 changes: 16 additions & 6 deletionsSource/MQTTnet.AspnetCore/Internal/MqttClientChannelAdapter.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionSource/MQTTnet.Tests/ASP/MqttConnectionContextTest.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletionSource/MQTTnet.Tests/Clients/LowLevelMqttClient/LowLevelMqttClient_Tests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
16 changes: 2 additions & 14 deletionsSource/MQTTnet.Tests/MQTTv5/Server_Tests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
33 changes: 16 additions & 17 deletionsSource/MQTTnet.Tests/Mockups/AspNetCoreTestEnvironment.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
16 changes: 2 additions & 14 deletionsSource/MQTTnet.Tests/Server/Keep_Alive_Tests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
17 changes: 2 additions & 15 deletionsSource/MQTTnet.Tests/Server/Session_Tests.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.