{"id":20974904,"url":"https://github.com/usausa/azure-functions-extension","last_synced_at":"2026-02-13T05:03:03.025Z","repository":{"id":44344171,"uuid":"512120197","full_name":"usausa/azure-functions-extension","owner":"usausa","description":"Azure Functions extension.","archived":false,"fork":false,"pushed_at":"2025-03-09T09:51:43.000Z","size":94,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-29T17:39:46.166Z","etag":null,"topics":["azure","azure-functions","serverless"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/usausa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-09T07:15:51.000Z","updated_at":"2025-03-27T05:30:20.000Z","dependencies_parsed_at":"2023-12-01T00:25:36.624Z","dependency_job_id":"b9c8e863-e1a5-4137-8187-f35e8449b13c","html_url":"https://github.com/usausa/azure-functions-extension","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/usausa/azure-functions-extension","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fazure-functions-extension","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fazure-functions-extension/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fazure-functions-extension/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fazure-functions-extension/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/usausa","download_url":"https://codeload.github.com/usausa/azure-functions-extension/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/usausa%2Fazure-functions-extension/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29396847,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T04:26:15.637Z","status":"ssl_error","status_checked_at":"2026-02-13T04:16:29.732Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["azure","azure-functions","serverless"],"created_at":"2024-11-19T04:35:14.052Z","updated_at":"2026-02-13T05:03:03.004Z","avatar_url":"https://github.com/usausa.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Azure Functions Extension for .NET\n\n[![NuGet Badge](https://buildstats.info/nuget/AzureFunctionsExtension)](https://www.nuget.org/packages/AzureFunctionsExtension/)\n\n## What is this?\n\nAzure Functions extension library.\n\n## Supported features\n\n* Model binding attribute lile [FromQuery], [FromBody]\n* System.Text.Json serializer\n\n## Binding\n\n### Query binding\n\n* Add [BindQuery] attribute to parameters\n* Built-in types and Nullable Built-in types and TypeDescriptor and Array supported\n\n```csharp\n[FunctionName(\"Query\")]\npublic IActionResult Query(\n    [HttpTrigger(AuthorizationLevel.Anonymous, \"get\", Route = \"query\")] HttpRequest req,\n    [BindQuery] int a,\n    [BindQuery] int? b,\n    [BindQuery] int c = 3)\n{\n    return Results.Of(new QueryResponse\n    {\n        Result = a + (b ?? 0) + c\n    });\n}\n\n[FunctionName(\"Array\")]\npublic IActionResult Array(\n    [HttpTrigger(AuthorizationLevel.Anonymous, \"get\", Route = \"array\")] HttpRequest req,\n    [BindQuery] int[] a,\n    [BindQuery] int?[] b)\n{\n    return Results.Of(new QueryResponse\n    {\n        Result = a.Sum() + b.Sum(x =\u003e x ?? 0)\n    });\n}\n```\n\n### Body binding\n\n* Add [BindBody] attribute to parameters\n* Serialize Body using System.Text.Json\n\n```csharp\n[FunctionName(\"Body\")]\npublic IActionResult Body(\n    [HttpTrigger(AuthorizationLevel.Function, \"post\", Route = \"body\")] HttpRequest req,\n    [BindBody] BodyRequest request)\n{\n    return Results.Of(new BodyResponse\n    {\n        Id = request.Id,\n        Name = request.Name\n    });\n}\n```\n\n```csharp\npublic class BodyRequest\n{\n    public int Id { get; set; }\n\n    public string Name { get; set; }\n}\n```\n\n## System.Text.Json serializer\n\n### IActionResult\n\n* SystemTextJsonResult action result\n* Results helper class\n\n```csharp\nreturn new SystemTextJsonResult(response);\n```\n\n```csharp\n// if response is null return NotFoundResult, response is not null return SystemTextJsonResult\nreturn Results.Of(response);\n```\n\n### Configuration\n\n* Use AddAzureFunctionExtension() method to configure\n\n```csharp\npublic sealed class Startup : FunctionsStartup\n{\n    public override void Configure(IFunctionsHostBuilder builder)\n    {\n        builder.Services.AddAzureFunctionExtension(c =\u003e\n        {\n            c.Options.Converters.Add(new DateTimeConverter());\n        });\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusausa%2Fazure-functions-extension","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fusausa%2Fazure-functions-extension","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fusausa%2Fazure-functions-extension/lists"}