public static ResolveResultDTO <DataType> ResolveNotFound(
     ResolveRequestDTO req
     )
 {
     return(new ResolveResultDTO <DataType>
     {
         status = ResolveStatusCode.NOT_FOUND,
         message = "not found"
     });
 }
 public static ResolveResultDTO <DataType> ResolveError(
     ResolveRequestDTO req,
     Exception error,
     string message = null
     )
 {
     return(new ResolveResultDTO <DataType>
     {
         status = ResolveStatusCode.ERROR,
         message = !string.IsNullOrEmpty(message) ?
                   message : error.Message
     });
 }
Beispiel #3
0
 public static void ResolveRequested(ResolveRequestDTO dto, Opts opts = Opts.RequireReceiver)
 {
     N.Send(RESOLVE_REQUESTED, dto, opts);
 }