Skip to content

Instantly share code, notes, and snippets.

@DanielSSilva
Created October 10, 2017 13:30
Show Gist options
  • Save DanielSSilva/468b7b4b1451ebdea4cb76c000e99e5a to your computer and use it in GitHub Desktop.
Save DanielSSilva/468b7b4b1451ebdea4cb76c000e99e5a to your computer and use it in GitHub Desktop.
SignalR sample
public void ConfigureServices(IServiceCollection services)
{
services.AddSignalR();
}
public void Configure(IApplicationBuilder app, IHostingEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseSignalR(routes =>
{
routes.MapHub<EntryPoint>("entryPoint");
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment