{"id":16485273,"url":"https://github.com/nkz-soft/nkzsoft.fluentresults.extensions.functional","last_synced_at":"2025-11-24T20:02:32.693Z","repository":{"id":255839140,"uuid":"848863696","full_name":"nkz-soft/NKZSoft.FluentResults.Extensions.Functional","owner":"nkz-soft","description":"It is a library that extends the popular FluentResults library and helps you write code in a more functional way.","archived":false,"fork":false,"pushed_at":"2025-01-06T13:04:48.000Z","size":70,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-11T14:45:29.775Z","etag":null,"topics":["csharp","dotnet","fluentresults","functional-programming","result","result-pattern"],"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/nkz-soft.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":"2024-08-28T14:43:20.000Z","updated_at":"2024-12-07T18:21:17.000Z","dependencies_parsed_at":"2024-09-07T11:58:50.188Z","dependency_job_id":"0e6335e3-4fd5-49ae-a025-35d1b12cb489","html_url":"https://github.com/nkz-soft/NKZSoft.FluentResults.Extensions.Functional","commit_stats":null,"previous_names":["nkz-soft/nkzsoft.fluentresults.extensions.functional"],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkz-soft%2FNKZSoft.FluentResults.Extensions.Functional","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkz-soft%2FNKZSoft.FluentResults.Extensions.Functional/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkz-soft%2FNKZSoft.FluentResults.Extensions.Functional/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nkz-soft%2FNKZSoft.FluentResults.Extensions.Functional/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nkz-soft","download_url":"https://codeload.github.com/nkz-soft/NKZSoft.FluentResults.Extensions.Functional/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241261695,"owners_count":19936046,"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":["csharp","dotnet","fluentresults","functional-programming","result","result-pattern"],"created_at":"2024-10-11T13:25:07.826Z","updated_at":"2025-11-24T20:02:27.659Z","avatar_url":"https://github.com/nkz-soft.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# NKZSoft.FluentResults.Functional.Extensions\n\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/nkz-soft/NKZSoft.FluentResults.Extensions.Functional?style=flat-square)\n![license](https://img.shields.io/github/license/nkz-soft/NKZSoft.FluentResults.Extensions.Functional?style=flat-square)\n![GitHub Workflow Status (with branch)](https://img.shields.io/github/actions/workflow/status/nkz-soft/NKZSoft.FluentResults.Extensions.Functional/build.yaml)\n\nIt is a library that extends the popular [FluentResults](https://github.com/altmann/FluentResults) library and helps you write code in a more functional way.\nThe project was inspired by [Functional Extensions for C#](https://github.com/vkhorikov/CSharpFunctionalExtensions).\n\n### ⭐ Give a star\n\nIf you're using this repository for your learning, samples or your project, please give a star. Thanks :+1:\n\n## Installation\n\nAvailable on [NuGet](https://www.nuget.org/packages/NKZSoft.FluentResults.Extensions.Functional/)\n\n```bash\ndotnet add package NKZSoft.FluentResults.Extensions.Functional\n```\n\n## Features\nAll methods have asynchronous overloads and ValueTask support.\n\n### Bind\n\nIt executes the function only if the Result is successful (i.e., not failed). If the Result is failed, it returns the original failed Result. \nIf the Result is successful, it executes the function and returns the resulting Result.\n\n```csharp\npublic async Task\u003cResult\u003cint\u003e\u003e OnSuccessAsync(int x)\n...\nawait Result.Ok(1).BindAsync(OnSuccessAsync);\n```\n\n### Finally\n\nExecutes a function after a Result, regardless of its success or failure.\n\n```csharp\npublic async Task\u003cint\u003e OnBothAsync(Result result)\n...\nawait Result.Ok().FinallyAsync(OnBothAsync);\n```\n### Tap\n\nExecutes an action if the result is successful and return the original result.\n\n```csharp\npublic async Task OnActionAsync()\n...\nawait Result.Ok().TapAsync(OnActionAsync);\n```\n\n### Match\n\nMatches a Result to either a success or failure action.\n\n```csharp\npublic async Task OnSuccessAsync()\n...\npublic async Task OnFailureAsync(IList\u003cIError\u003e errors)\n...\n\nawait Result.Ok().MatchAsync(OnActionAsync, OnFailureAsync);\n```\n\n### Ensure\n\nEnsures that a condition is met for a successful Result.\nIf the condition is not met, returns a failed Result with the specified error message.\n\n```csharp\nvar outputResult = await result.EnsureAsync(() =\u003e true, FailErrorMessage);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkz-soft%2Fnkzsoft.fluentresults.extensions.functional","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnkz-soft%2Fnkzsoft.fluentresults.extensions.functional","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnkz-soft%2Fnkzsoft.fluentresults.extensions.functional/lists"}