Skip to content

Upgrade to latest Azure Functions SDK #41

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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 16, 2024
Merged

Upgrade to latest Azure Functions SDK #41

merged 1 commit into from
Nov 16, 2024

Conversation

shibayan
Copy link
Owner

This pull request includes several updates to the Azure Functions sample projects and the core libraries. The most important changes include updating package versions, refactoring code for improved readability, and modifying project configurations.

Package Updates:

  • Updated Microsoft.NET.Sdk.Functions to version 4.6.0 in several sample projects (BasicSample.csproj, ProxySample.csproj, VirtualPathSample.csproj, WebsiteSample.csproj). [1] [2] [3] [4]
  • Updated Microsoft.Azure.Functions.Worker and Microsoft.Azure.Functions.Worker.Sdk to version 2.0.0 in IsolatedSample.csproj.
  • Updated Microsoft.Azure.Functions.Worker.Extensions.Http.AspNetCore to version 2.0.0 in Functions.Worker.Extensions.HttpApi.csproj.

Code Refactoring:

  • Simplified null-check in AddHttpApi method by using ArgumentNullException.ThrowIfNull in HttpApiBuilderExtensions.cs.
  • Refactored HttpFunctionBase class declarations to use semicolon syntax in HttpFunctionBase.cs files. [1] [2]

Project Configuration:

  • Modified Program.cs in IsolatedSample to use FunctionsApplication.CreateBuilder and added comments for enabling Application Insights.

Code Improvements:

  • Removed unnecessary private logger field and directly used the parameter logger in Function1.cs.

@shibayan shibayan added the enhancement New feature or request label Nov 16, 2024
@shibayan shibayan self-assigned this Nov 16, 2024
@shibayan shibayan merged commit 05062aa into master Nov 16, 2024
1 check passed
@shibayan shibayan deleted the upgrade-sdk branch November 16, 2024 06:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant