PRN221_-_REB5_-_FA_2023_1337.webp
A

PRN221_-_REB5_-_FA_2023_1337.webp

Answer (Choose 1 answer)
To enable SignalR in the specific application, call the AddSignalR extension method to configure the loC container with services required by SignalR. Choose following code to add to ConfigureServices method (Startup.cs).
A. public void ConfigureServices (IServiceCollection services)
{
Il...services.AddSignalR();
public void Configure(IApplicationBuilder app, HostingEnvironment env)
}
app.UseAuthentication();app.UseMvc();
app.UseSignalR (builder =>
{
builder.MapHub<ChatHubClass>("/chat");});
B. public void ConfigureServices (IServiceCollection services)
Il...
services.AddSignalR().Start();
}
public void Configure(IApplicationBuilder app, HostingEnvironment env)
}

Exit 34

Thông tin

Category
PRN221
Thêm bởi
Alphonse91
Ngày thêm
Lượt xem
1,387
Lượt bình luận
2
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
PRN221_-_REB5_-_FA_2023_1337.webp
File size
64.3 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom