Class LanguageExtensions
Namespace: Common.Extensions
Assembly: Common.dll
Common.Extensions.LanguageExtensions contains a static method that process a result object and return the relevant response.
Inheritance
object ← LanguageExtensions
Inherited Members
object.Equals\(object?\), object.Equals\(object?, object?\), object.GetHashCode\(\), object.GetType\(\), object.MemberwiseClone\(\), object.ReferenceEquals\(object?, object?\), object.ToString\(\)
Methods
Match<TResult\>\(Result<TResult\>, Func<TResult, ActionResult\>\)
Matching the given LanguageExt.Common.Result%601 with generic failure processing.
Parameters
result Result<TResult\>
The LanguageExt.Common.Result%601 to match.
success Func <TResult, ActionResult \>
The success callback.
Returns
Microsoft.AspNetCore.Mvc.ActionResult or Exception Microsoft.AspNetCore.Mvc.ObjectResult depending on the match.
Type Parameters
TResult
The type of the LanguageExt.Common.Result%601.