示例#1
0
 public static IEither <IEnumerable <ICommandError>, IEnumerable <IEvent> > Failed(ICommandError error)
 {
     return(Either.Create <IEnumerable <ICommandError>, IEnumerable <IEvent> >(error.ToEnumerable()));
 }
示例#2
0
 public static IEither <IEnumerable <ICommandError>, IEnumerable <IEvent> > Failed(ICommandError error)
 => CommandResult.Failed(new[] { error });