{"id":28003155,"url":"https://github.com/fnproject/fdk-dotnet","last_synced_at":"2025-05-09T01:59:14.263Z","repository":{"id":87295973,"uuid":"436929505","full_name":"fnproject/fdk-dotnet","owner":"fnproject","description":"This project contains an implementation of FDK for C# running on dotnet runtime.","archived":false,"fork":false,"pushed_at":"2025-02-21T09:44:02.000Z","size":4086,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-05-09T01:59:09.923Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fnproject.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":"2021-12-10T09:55:30.000Z","updated_at":"2025-04-09T02:52:39.000Z","dependencies_parsed_at":"2023-03-06T05:15:22.340Z","dependency_job_id":"f623a62f-5bb5-4cec-b9d4-0da953d85498","html_url":"https://github.com/fnproject/fdk-dotnet","commit_stats":null,"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Ffdk-dotnet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Ffdk-dotnet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Ffdk-dotnet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fnproject%2Ffdk-dotnet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fnproject","download_url":"https://codeload.github.com/fnproject/fdk-dotnet/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253176436,"owners_count":21866142,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2025-05-09T01:59:13.668Z","updated_at":"2025-05-09T01:59:14.253Z","avatar_url":"https://github.com/fnproject.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fnproject.Fn.Fdk\n\nThis project contains an implementation of FDK for C# running on dotnet runtime.\n\n## Usage\n#### Add the project as a dependency from Nuget\nhttps://www.nuget.org/packages/Fnproject.Fn.Fdk/\n\n#### Use the Handle function in library to handle user function\n```dotnet\nusing Fnproject.Fn.Fdk;\n\nnamespace example\n{\n    class Program\n    {\n        public static string userFunc(string input) {\n          if(input.Length == 0) input = \"World\"\n          return string.Format(\"Hello, {0}!\", input);\n        }\n\n        static void Main(string[] args)\n        {\n          Fdk.Handle(arg[0]);\n        }\n    }\n}\n```\nWhile caliing the function, pass `namespace:class:function` as arguments to the binary.\nTo run the above example, use `dotnet func.dll example:Program:userFunc`.\n\n#### Handle other content types\nThe library exposes interfaces for users to write serialization and deserialization logic\n- `IInputCoercible` - This interface can be implemented on user type to modify deserialization of request body.\n- `IOutputCoercible` - This interface can be implemented on user type to modify serialization of response body.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnproject%2Ffdk-dotnet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffnproject%2Ffdk-dotnet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffnproject%2Ffdk-dotnet/lists"}