title: How to receive message from the asp.net core using signalR core to UWP
body: <p>SignalR core was demo with javascript client or Angular
  My case is using UWP to render the front-end. While Microsoft only tell how to Invoke the message from client to server, It's docs didn't show how to receive message 
  [<a href="https://docs.microsoft.com/en-us/aspnet/core/signalr/dotnet-client?view=aspnetcore-2.2][1]" rel="nofollow noreferrer">https://docs.microsoft.com/en-us/aspnet/core/signalr/dotnet-client?view=aspnetcore-2.2][1]</a></p>
  
  <p>Here is my server: </p>
  
  <pre><code>public class Startup
  {
      public void ConfigureServices(IServiceCollection services)
      {
          services.AddMvc()
              .SetCompatibilityVersion(CompatibilityVersion.Version_2_1);
          services.AddSingleton&lt;IInventoryServices, InventoryServices&gt;();
          services.AddSignalR();
      }
  
      public void Configure(IApplicationBuilder app, IHostingEnvironment env)
      {
          if (env.IsDevelopment())
          {
              app.UseDeveloperExceptionPage();
          }
          else
          {
              app.UseHsts();
          }
  
          app.UseHttpsRedirection();
          app.UseSignalR(route =&gt;
          {
              route.MapHub&lt;MessageHub&gt;("/hub");
          });
  
          app.UseMvc();
      }
  }
  </code></pre>
  
  <p>this is the controller: </p>
  
  <pre><code>[Route("api/hub")]
  [ApiController]
  public class MessController : Controller
  {
      private IHubContext&lt;MessageHub&gt; _messhubContext;
  
      public MessController(IHubContext&lt;MessageHub&gt; messhubContext)
      {
          _messhubContext = messhubContext;
      }
  
      public ActionResult Post()
      {
          _messhubContext.Clients.All.SendAsync("send", "Strypper", "Howdy");
          System.Diagnostics.Debug.WriteLine("I'm here");
          return Ok();
      }
  </code></pre>
  
  <p>And here is the hub: </p>
  
  <pre><code>public class MessageHub : Hub
  {
      public Task Send(string user ,string message)
      {
          return Clients.All.SendAsync("Send", user, message);
      }
  }
  </code></pre>
  
  <p>My "PostMan" is messed up and I don't wanna discuss about it. Is there anyone here work with uwp framework could show me the way to receive the message from the server I made ?</p>