Exemple #1
0
 public static void ResultAsync <TResponse>(this IHandleContext context, TResponse Payload, String ETag = "") where TResponse : class
 {
     context.ReplyAsync <IReply>(x =>
     {
         x.ETag    = ETag;
         x.Payload = Payload;
     });
 }
Exemple #2
0
 public static void ResultAsync <TResponse>(this IHandleContext context, IEnumerable <TResponse> Records, Int64 Total, Int64 ElapsedMs) where TResponse : class
 {
     context.ReplyAsync <IPagedReply>(x =>
     {
         x.Records   = Records.ToList();
         x.Total     = Total;
         x.ElapsedMs = ElapsedMs;
     });
 }