Пример #1
0
 public static ExcuteResult <T> Ok <T>(this ExcuteResult <T> @this, Action <T> action)
 {
     return(@this.On(r => r.Success, t => action(t.Result)));
 }
Пример #2
0
 public static ExcuteResult <T> Error <T>(this ExcuteResult <T> @this, Action <Exception> action)
 {
     return(@this.On(r => !r.Success, t => action(t.Exception)));
 }
Пример #3
0
 public static ExcuteResult Ok(this ExcuteResult @this, Action action)
 {
     return(@this.On(r => r.Success, t => action()));
 }