Updates for changed to .NET Core 3 (#6)
This commit is contained in:
Родитель
ded6a1da64
Коммит
fe476f23bf
11
Startup.cs
11
Startup.cs
|
@ -51,12 +51,13 @@ namespace StreamR
|
|||
app.UseStaticFiles();
|
||||
app.UseCookiePolicy();
|
||||
|
||||
app.UseSignalR(route =>
|
||||
{
|
||||
route.MapHub<StreamHub>("/stream");
|
||||
});
|
||||
app.UseRouting();
|
||||
|
||||
app.UseMvc();
|
||||
app.UseEndpoints(endpoints =>
|
||||
{
|
||||
endpoints.MapRazorPages();
|
||||
endpoints.MapHub<StreamHub>("/stream");
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -5,11 +5,4 @@
|
|||
<AspNetCoreHostingModel>InProcess</AspNetCoreHostingModel>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.AspNetCore.App" Version="3.0.0-preview-19075-0444" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.SignalR" Version="3.0.0-preview-19075-0444" />
|
||||
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.MessagePack" Version="3.0.0-preview-19075-0444" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
Загрузка…
Ссылка в новой задаче