Пример #1
0
 private ActionResult Hub_Clients()
 {
     using (Hubs.ServerHub server = new Hubs.ServerHub())
     {
         return(Json(server.GetAllClinet(), JsonRequestBehavior.AllowGet));
     }
 }
Пример #2
0
 private void Hub_Push()
 {
     using (Hubs.ServerHub server = new Hubs.ServerHub())
     {
         server.BroadcastOrderEvent(123, 456, EnumData.OrderChangeStatus.包裹回收);
     }
 }