Developing ASP.NET MVC Web Applications — Question 122

You create an ASP.NET MVC application. You host the application by using the Open Web Interface for .NET (OWIN). You run the following command by using the NuGet Package Manager console: install-package Microsoft.AspNet.SignalR
You plan to implement real-time push notifications from the server using ASP.NET SignalR.
You need to complete the ASP.NET SignalR implementation.
Which three steps should you perform? Each correct answer presents part of the solution.

Answer options

Correct answer: A, C, D

Explanation

The correct actions are A, C, and D. Creating a hub class (A) is essential for managing client communication, while using the SignalR jQuery library (C) allows clients to interact with the hub and receive updates. Mapping the hub (D) to the OWIN startup class is necessary for integrating SignalR into the application pipeline. Options B and E are not required for setting up basic SignalR functionality.