Created
October 10, 2017 13:30
-
-
Save DanielSSilva/468b7b4b1451ebdea4cb76c000e99e5a to your computer and use it in GitHub Desktop.
SignalR sample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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