예제 #1
0
 static object Map(ClientStatusModel model)
 {
     return new
     {
         type = model.Type.ToString("g").ToLower(),
         message = model.Message
     };
 }
예제 #2
0
 public async Task ExecuteAsync(ClientStatusModel model)
 {
     _clients.Client(model.Id).Status(Map(model));
 }