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