signalr test
This commit is contained in:
1 parent
a87e5e5ff9
commit
d250bca681
16 files changed
+8779
-62
No files matched your search
@@ -59,6 +59,12 @@ builder.Services.AddSoapCore();
|
||||
builder.Services.AddScoped(typeof(IUnitWork), typeof(UnitWork));
|
||||
builder.Services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
|
||||
|
||||
builder.Services.AddSignalR()
|
||||
.AddMessagePackProtocol();
|
||||
|
||||
builder.Services.AddSingleton<StockTicker>();
|
||||
|
||||
|
||||
var app = builder.Build();
|
||||
IOptionsMonitor<Configs> config = app.Services.GetRequiredService<IOptionsMonitor<Configs>>();
|
||||
|
||||
@@ -90,6 +96,7 @@ app.UseEndpoints(endpoints =>
|
||||
endpoints.MapControllerRoute(
|
||||
name: "default",
|
||||
pattern: "{controller=Home}/{action=Index}/{id?}");
|
||||
endpoints.MapHub<StockTickerHub>("/stocks");
|
||||
});
|
||||
|
||||
app.UseWtmContext();
|
||||
|
||||
Reference in new issue
Block a user