Always setup options #162
Annotations
10 warnings
build:
src/ToMqttNet/WatchingMqttCertificateProvider.cs#L54
'X509Certificate2.X509Certificate2(string)' is obsolete: 'Loading certificate data through the constructor or Import is obsolete. Use X509CertificateLoader instead to load certificates.' (https://aka.ms/dotnet-warnings/SYSLIB0057)
|
build:
src/ToMqttNet/MqttConnectionServiceCollectionExtensions.cs#L22
Using member 'Microsoft.Extensions.DependencyInjection.OptionsBuilderConfigurationExtensions.BindConfiguration<TOptions>(OptionsBuilder<TOptions>, String, Action<BinderOptions>)' which has 'RequiresUnreferencedCodeAttribute' can break functionality when trimming application code. TOptions's dependent types may have their members trimmed. Ensure all required members are preserved.
|
build:
src/ToMqttNet/MqttConnectionServiceCollectionExtensions.cs#L22
Using member 'Microsoft.Extensions.DependencyInjection.OptionsBuilderConfigurationExtensions.BindConfiguration<TOptions>(OptionsBuilder<TOptions>, String, Action<BinderOptions>)' which has 'RequiresDynamicCodeAttribute' can break functionality when AOT compiling. Binding strongly typed objects to configuration values may require generating dynamic code at runtime.
|
build:
test/ToMqttNet.Test.Unit/MqttConnectionServiceTests.cs#L144
Non-nullable event 'SubscriptionsChangedAsync' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the event as nullable.
|
build:
test/ToMqttNet.Test.Unit/MqttConnectionServiceTests.cs#L144
The event 'MqttClientStub.SubscriptionsChangedAsync' is never used
|
build:
test/ToMqttNet.Test.Unit/MqttConnectionServiceTests.cs#L122
The field 'MqttClientStub.ApplicationMessageProcessedAsync' is assigned but its value is never used
|
build:
test/ToMqttNet.Test.Unit/MqttConnectionServiceTests.cs#L124
The field 'MqttClientStub.ApplicationMessageSkippedAsync' is assigned but its value is never used
|
build:
test/ToMqttNet.Test.Unit/MqttConnectionServiceTests.cs#L143
The field 'MqttClientStub.SynchronizingSubscriptionsFailedAsync' is assigned but its value is never used
|
build:
test/ToMqttNet.Test.Unit/MqttConnectionServiceTests.cs#L132
The field 'MqttClientStub.ConnectingFailedAsync' is assigned but its value is never used
|
build:
test/ToMqttNet.Test.Unit/MqttConnectionServiceTests.cs#L123
The field 'MqttClientStub.ApplicationMessageReceivedAsync' is assigned but its value is never used
|