Comments (2)
Thanks for your feedback. Your scenario can be done with the existing public api of FluentResults. See code below.
Result<bool> Method1()
{
var m2Result = Method2();
if (m2Result.IsSuccess)
{
//Do some other operations
return Results.Ok(true);
}
else
{
return m2Result.ToResult<bool>();
}
}
Result<int> Method2()
{
}
If you have further feedback please write me. Feedback is most welcome.
from fluentresults.
Fantastic @altmann . Thanks for your response.
from fluentresults.
Related Issues (20)
- [Suggestion] Need Generic Fail<T>(T object) method too HOT 1
- [Question] Results.Merge() where TValue is a collection
- Source Link
- GRPC Proposal HOT 2
- Aggregating all your Exceptions
- Expand FailIf
- [Idea]: Integration of Error Result with RFC 7807 standard format HOT 1
- Using Fluentresult Without MediatR & CQRS HOT 1
- Add Extension methods "Bind" and "Map" for IResult<T>
- BenchmarkDotNet error: FluentResults is non-optimized HOT 2
- Binaries in nuget package compiled in debug mode
- Suggestion for IResultBase: Make Errors/Successes as IReadOnlyCollection
- Is this project still alive? HOT 4
- Value throws an InvalidOperationException after any call of .WithError() HOT 1
- Integrate with FluentValidation
- Don't understand, why an implicit conversion of matching generic types doesn't work
- Availability of Tag for v3.15.2
- fluentresults is missing NuGet package README file
- `HasError<T>` can throw, when I would expect `false`
- Documentation of some methods shows as `<inheritdoc></inheritdoc>`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fluentresults.