There is a need for propagating a IDomainResult state (received from a nested call) up. The nested response type can be different from the type of the parent method.
Suggested use:
private IDomainResult<int> Foo()
{
IDomainResult<string> res = FooNested();
if (!res.IsSuccess)
return res.ConvertTo<int>();
}
The same for converting IDomainResult<T> to IDomainResult and vice versa.
There is a need for propagating a
IDomainResult
state (received from a nested call) up. The nested response type can be different from the type of the parent method.Suggested use:
The same for converting
IDomainResult<T>
toIDomainResult
and vice versa.