ardalis / Result

A result abstraction that can be mapped to HTTP response codes if needed.
MIT License
866 stars 107 forks source link

Add Bind in addition to Map to support Railway Oriented Programming #215

Closed christophercalm closed 1 week ago

christophercalm commented 1 week ago

This is related to https://github.com/ardalis/Result/issues/211

This is a PR that adds Bind in Addition to map to chain result producing functions. It also has overloads for async for all void result and task result types so no conversions should be needed.

github-actions[bot] commented 1 week ago

Code Coverage

Package Line Rate Branch Rate Complexity Health
Ardalis.Result.Sample.Core 19% 17% 66
Ardalis.Result 9% 0% 244
Ardalis.Result.FluentValidation 86% 50% 6
Summary 15% (88 / 594) 5% (9 / 194) 316