Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd801881

Browse files
authored
Restore support for null in _AddServer_ method in ASP.NET integration (#1981)
* Upgrade ASP test project to dotnet8.* Fix broken null support for _AddMqttServer_ method.* Fix wrong code style* Downgrade to dotnet7.0* Expose certificate selection in MQTTnet options* Revert "Expose certificate selection in MQTTnet options"This reverts commitf7d098a.* Update release notes
1 parent4ab956a commitd801881

File tree

4 files changed

+7
-10
lines changed

4 files changed

+7
-10
lines changed

‎.editorconfig‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ dotnet_style_qualification_for_method = false:suggestion
4040
dotnet_style_qualification_for_property =false:suggestion
4141

4242
# ReSharper properties
43-
resharper_autodetect_indent_settings =true
4443
resharper_default_private_modifier =implicit
4544
resharper_place_accessorholder_attribute_on_same_line =false
4645
resharper_use_indent_from_vs =false
@@ -61,7 +60,7 @@ resharper_web_config_wrong_module_highlighting = warning
6160
[*]
6261
charset =utf-8
6362
end_of_line =crlf
64-
trim_trailing_whitespace =false
63+
trim_trailing_whitespace =true
6564
insert_final_newline =false
6665
indent_style =space
6766
indent_size =4

‎.github/workflows/ReleaseNotes.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
*[Core] Optimized packet serialization of PUBACK and PUBREC packets for protocol version 5.0.0 (#1939, thanks to@Y-Sindo).
22
*[Core] The package inspector is now fully async (#1941).
33
*[Client] Added a dedicated exception when the client is not connected (#1954, thanks to@marcpiulachs).
4-
*[Server] The server will no longer send_NoMatchingSubscribers_ when the actual subscription was non success (#1965, BREAKING CHANGE!).
4+
*[Server] The server will no longer send_NoMatchingSubscribers_ when the actual subscription was non success (#1965, BREAKING CHANGE!).
5+
*[Server] Fixed broken support for_null_ in_AddServer_ method in ASP.NET integration (#1981).
56
*[ManagedClient] Added a new event (SubscriptionsChangedAsync) which is fired when a subscription or unsubscription was made (#1894, thanks to@pdufrene).
67
*[TopicTemplate] Added new extension which provides a template engine for topics (#1932, thanks to@simonthum).

‎Source/MQTTnet.AspTestApp/MQTTnet.AspTestApp.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<ProjectSdk="Microsoft.NET.Sdk.Web">
22

33
<PropertyGroup>
4-
<TargetFramework>net6.0</TargetFramework>
4+
<TargetFramework>net7.0</TargetFramework>
55
<Nullable>enable</Nullable>
66
<ImplicitUsings>enable</ImplicitUsings>
77
<IsPackable>false</IsPackable>

‎Source/MQTTnet.AspnetCore/ServiceCollectionExtensions.cs‎

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,10 @@ public static IServiceCollection AddHostedMqttServer(this IServiceCollection ser
4040
thrownewArgumentNullException(nameof(services));
4141
}
4242

43-
if(configure==null)
44-
{
45-
thrownewArgumentNullException(nameof(configure));
46-
}
47-
4843
varserverOptionsBuilder=newMqttServerOptionsBuilder();
49-
configure.Invoke(serverOptionsBuilder);
44+
45+
configure?.Invoke(serverOptionsBuilder);
46+
5047
varoptions=serverOptionsBuilder.Build();
5148

5249
returnAddHostedMqttServer(services,options);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp