Skip to content

Methods_T_RailwaySharp_ErrorHandling_Result

Moh.Hassan edited this page Oct 10, 2019 · 1 revision

Result Methods

The Result type exposes the following members.

Methods

 

Name Description
Public methodStatic member FailWith(TSuccess, TMessage)(IEnumerable(TMessage)) Creates a Failure result with the given messages.
Public methodStatic member FailWith(TSuccess, TMessage)(TMessage) Creates a Failure result with the given message.
Public methodStatic member Succeed(TSuccess, TMessage)(TSuccess) Creates a Success result with the given value.
Public methodStatic member Succeed(TSuccess, TMessage)(TSuccess, IEnumerable(TMessage)) Creates a Success result with the given value and the given messages.
Public methodStatic member Succeed(TSuccess, TMessage)(TSuccess, TMessage) Creates a Success result with the given value and the given message.
Public methodStatic member Try(TSuccess) Executes the given function on a given success or captures the failure.
  Back to Top

See Also

Reference

Result Class
RailwaySharp.ErrorHandling Namespace

Clone this wiki locally