Skip to content

Console.Advanced: don't DeleteWebhookAsync on app stop #280

Console.Advanced: don't DeleteWebhookAsync on app stop

Console.Advanced: don't DeleteWebhookAsync on app stop #280

Triggered via push July 1, 2024 12:20
Status Success
Total duration 58s
Artifacts
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
build: Serverless/AzureFunctions.Webhook/Startup.cs#L13
In externally visible method 'void Startup.Configure(IFunctionsHostBuilder builder)', validate parameter 'builder' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
build: Serverless/AwsLambda.Webhook/lambda-bot/Function.cs#L21
In externally visible method 'Task<string> LambdaFunction.FunctionHandler(JsonElement request, ILambdaContext context)', validate parameter 'context' is non-null before using it. If appropriate, throw an 'ArgumentNullException' when the argument is 'null'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1062)
build: Console.Advanced/Abstract/PollingServiceBase.cs#L25
For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger, string?, params object?[])' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)
build: Console.Advanced/Services/UpdateHandler.cs#L21
In member Task UpdateHandler.HandleUpdateAsync(ITelegramBotClient _, Update update, CancellationToken cancellationToken), change parameter name _ to botClient in order to match the identifier as it has been declared in Task IUpdateHandler.HandleUpdateAsync(ITelegramBotClient botClient, Update update, CancellationToken cancellationToken) (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1725)
build: Console.Advanced/Abstract/PollingServiceBase.cs#L51
For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogError(ILogger, string?, params object?[])' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)
build: Console.Advanced/Abstract/ReceiverServiceBase.cs#L42
For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger, string?, params object?[])' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)
build: Console.Advanced/Abstract/PollingServiceBase.cs#L49
Modify 'DoWork' to catch a more specific allowed exception type, or rethrow the exception (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1031)
build: Console.Advanced/Services/UpdateHandler.cs#L202
For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger, string?, params object?[])' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)
build: Console.Advanced/Services/UpdateHandler.cs#L219
For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger, string?, params object?[])' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)
build: Console.Advanced/Services/UpdateHandler.cs#L255
For improved performance, use the LoggerMessage delegates instead of calling 'LoggerExtensions.LogInformation(ILogger, string?, params object?[])' (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1848)