mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-13 17:23:11 -05:00
21 lines
447 B
C#
21 lines
447 B
C#
using Microsoft.AspNet.SignalR;
|
|
using Microsoft.Owin.Cors;
|
|
using Owin;
|
|
|
|
namespace WeatherService.SignalR
|
|
{
|
|
class Startup
|
|
{
|
|
public void Configuration(IAppBuilder app)
|
|
{
|
|
app.Map("/signalr", map =>
|
|
{
|
|
map.UseCors(CorsOptions.AllowAll);
|
|
|
|
var hubConfiguration = new HubConfiguration();
|
|
map.RunSignalR(hubConfiguration);
|
|
});
|
|
}
|
|
}
|
|
}
|