Skip to content

Merge pull request #10 from NathanX-S/main #21

Merge pull request #10 from NathanX-S/main

Merge pull request #10 from NathanX-S/main #21

Triggered via push November 7, 2023 18:06
Status Success
Total duration 28s
Artifacts

dotnet.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: Settings/ServerApiSettings.cs#L5
Non-nullable property 'Url' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: Settings/ServerApiSettings.cs#L6
Non-nullable property 'Username' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: Settings/ServerApiSettings.cs#L7
Non-nullable property 'Password' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: Settings/DiscordSettings.cs#L32
Non-nullable property 'Token' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: Settings/DiscordSettings.cs#L34
Non-nullable property 'Roles' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: Settings/DiscordSettings.cs#L35
Non-nullable property 'Channels' must contain a non-null value when exiting constructor. Consider declaring the property as nullable.
build: Commands/RestartCommands.cs#L20
Non-nullable field '_restartInitiator' must contain a non-null value when exiting constructor. Consider declaring the field as nullable.
build: Program.cs#L33
The type 'app.Services.RunnerService?' cannot be used as type parameter 'THostedService' in the generic type or method 'ServiceCollectionHostedServiceExtensions.AddHostedService<THostedService>(IServiceCollection, Func<IServiceProvider, THostedService>)'. Nullability of type argument 'app.Services.RunnerService?' doesn't match 'class' constraint.
build: Program.cs#L33
The type 'app.Services.RunnerService?' cannot be used as type parameter 'THostedService' in the generic type or method 'ServiceCollectionHostedServiceExtensions.AddHostedService<THostedService>(IServiceCollection, Func<IServiceProvider, THostedService>)'. Nullability of type argument 'app.Services.RunnerService?' doesn't match constraint type 'Microsoft.Extensions.Hosting.IHostedService'.
build: Program.cs#L33
Nullability of reference types in return type of 'lambda expression' doesn't match the target delegate 'Func<IServiceProvider, RunnerService?>' (possibly because of nullability attributes).