Exemple #1
0
 /// <summary>
 /// This method is called internally to send response back to browser clients.
 /// </summary>
 /// <param name="connectionId">Identifies the browser client making prior request.</param>
 /// <param name="vmId">Identifies the view model.</param>
 /// <param name="vmData">View model data in serialized JSON.</param>
 internal void Response_VM(string connectionId, string vmId, string vmData)
 {
     if (connectionId.StartsWith(VMController.MULTICAST))
     {
         HandleMulticastMessage(connectionId, vmId, vmData);
     }
     else
     {
         if (_vmControllerFactory.GetInstance(connectionId) != null) // Touch the factory to push the timeout.
         {
             Clients.Client(connectionId).Response_VM(vmId, vmData);
         }
     }
 }
Exemple #2
0
 /// <summary>
 /// This method is called internally to send response back to browser clients.
 /// This is also overloaded to handle SignalR groups for multicast view models.
 /// </summary>
 /// <param name="connectionId">Identifies the browser client making prior request.</param>
 /// <param name="vmId">Identifies the view model.</param>
 /// <param name="vmData">View model data in serialized JSON.</param>
 internal void Response_VM(string connectionId, string vmId, string vmData)
 {
     if (connectionId.StartsWith(VMController.MULTICAST))
     {
         HandleMulticastMessage(connectionId, vmId, vmData);
     }
     else
     {
         if (_vmControllerFactory.GetInstance(connectionId) != null) // Touch the factory to push the timeout.
         {
             _globalHubContext.Clients.Client(connectionId).SendAsync(nameof(Response_VM), new object[] { vmId, vmData });
         }
     }
 }
Exemple #3
0
 /// <summary>
 /// This method is called internally to send response back to browser clients.
 /// This is also overloaded to handle SignalR groups for multicast view models.
 /// </summary>
 /// <param name="connectionId">Identifies the browser client making prior request.</param>
 /// <param name="vmId">Identifies the view model.</param>
 /// <param name="vmData">View model data in serialized JSON.</param>
 internal Task ResponseVMAsync(string connectionId, string vmId, string vmData)
 {
     if (connectionId.StartsWith(VMController.MULTICAST))
     {
         HandleMulticastMessage(connectionId, vmId, vmData);
     }
     else
     {
         if (_vmControllerFactory.GetInstance(connectionId) != null) // Touch the factory to push the timeout.
         {
             _globalHubContext.Clients.Client(connectionId).SendAsync(nameof(IDotNetifyHubMethod.Response_VM), new object[] { vmId, vmData });
         }
     }
     return(Task.CompletedTask);
 }
Exemple #4
0
 /// <summary>
 /// This method is called internally to send response back to browser clients.
 /// </summary>
 /// <param name="connectionId">Identifies the browser client making prior request.</param>
 /// <param name="vmId">Identifies the view model.</param>
 /// <param name="vmData">View model data in serialized JSON.</param>
 internal void Response_VM(string connectionId, string vmId, string vmData)
 {
     if (_vmControllerFactory.GetInstance(connectionId) != null) // Touch the factory to push the timeout.
     {
         _globalHubContext.Clients.Client(connectionId).SendAsync(nameof(Response_VM), new object[] { vmId, vmData });
     }
 }
Exemple #5
0
 /// <summary>
 /// This method is called internally to send response back to browser clients.
 /// </summary>
 /// <param name="connectionId">Identifies the browser client making prior request.</param>
 /// <param name="vmId">Identifies the view model.</param>
 /// <param name="vmData">View model data in serialized JSON.</param>
 internal void Response_VM(string connectionId, string vmId, string vmData)
 {
     if (_vmControllerFactory.GetInstance(connectionId) != null) // Touch the factory to push the timeout.
     {
         Clients.Client(connectionId).Response_VM(vmId, vmData);
     }
 }
Exemple #6
0
 /// <summary>
 /// This method is called by the VMManager to send response back to browser clients.
 /// </summary>
 /// <param name="connectionId">Identifies the browser client making prior request.</param>
 /// <param name="vmId">Identifies the view model.</param>
 /// <param name="vmData">View model data in serialized JSON.</param>
 public void Response_VM(string connectionId, string vmId, string vmData)
 {
     Trace.WriteLine($"[dotNetify] Response_VM: {vmId} {connectionId} {vmData}");
     if (_vmControllerFactory.GetInstance(connectionId) != null) // Touch the factory to push the timeout.
     {
         Clients.Client(connectionId).Response_VM(vmId, vmData);
     }
 }