Ejemplo n.º 1
0
        public override void Send_ExampleDTO(ExampleDTO exampleDto)
        {
            if (ConectedClients.Count == 0)
            {
                return;                             // no sense to send data to no one
            }
            logger.Debug(string.Format("Sending ... {0}", exampleDto.ToString()));

            // put the needed hub server
            var context = GlobalHost.ConnectionManager.GetHubContext <ExampleHubServer>();

            context.Clients.All.Send_ExampleDTO(exampleDto);
        }
Ejemplo n.º 2
0
 public virtual void Send_ExampleDTO(ExampleDTO exampleDto)
 {
     logger.Debug("HubSync Sending ExampleDTO: " + exampleDto.ToString());
     Clients.All.Send_ExampleDTO(exampleDto);
 }