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.
A.
Create a hub class to push content to clients.
B.
Create a classthat derives from the PersistentConnection class. Use the derived class to push content to
clients.
C.
Use the SignalR jQuery library in a web page to send messages to the hub and display updates from the
hub.
D.
Map a SignalR hub to the app builder pipeline by using an OWIN startup class.
E.
Start the SignalR hub asynchronously and respond to the appropriate callback methods.
Explanation:
A: In Solution Explorer, right-click the project, select Add | New Folder, and add a new folder named Hubs.
Right-click the Hubs folder, click Add | New Item, select the Visual C# | Web | SignalR node in the Installed
pane, select SignalR Hub Class (v2) from the center pane, and create a new hub named ChatHub.cs. You will
use this class as a SignalR serverhub that sends messages to all clients.
C: Use the SignalR jQuery library in a web page to send messages and display updates from the hub.
D: Create an OWIN startup class to configure the application.
https://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc
Correct
Correct