Exemplo n.º 1
0
 public static ResolveResultDTO <DataType> ResolveNotFound(
     ResolveRequestDTO req
     )
 {
     return(new ResolveResultDTO <DataType>
     {
         status = ResolveStatusCode.NOT_FOUND,
         message = "not found"
     });
 }
Exemplo n.º 2
0
 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
     });
 }
Exemplo n.º 3
0
 public static void ResolveRequested(ResolveRequestDTO dto, Opts opts = Opts.RequireReceiver)
 {
     N.Send(RESOLVE_REQUESTED, dto, opts);
 }