PRN221_-_RE_-_SU_2023_590.webp
Hagakure2002

PRN221_-_RE_-_SU_2023_590.webp

(12
(Choose 1 answer)
To enable SignalR in the specific application, call the AddSignalR extension method to co container with services required by SignalR. Choose following code to add to ConfigureSe (Startup.cs).
A. public void ConfigureServices (IServiceCollection services)
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)
{
}
II ...
services.AddSignalR().Start();
public void Configure(IApplicationBuilder app, HostingEnvironment env)
}

Thông tin

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

Image metadata

Filename
PRN221_-_RE_-_SU_2023_590.webp
File size
63.4 KB
Dimensions
1542px x 690px

Share this media

Back
Bên trên Bottom