exam questions

Exam 70-486 All Questions

View all questions & answers for the 70-486 exam

Exam 70-486 topic 1 question 98 discussion

Actual exam question from Microsoft's 70-486
Question #: 98
Topic #: 1
[All 70-486 Questions]

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.
Show Suggested Answer Hide Answer
Suggested Answer: ACD 🗳️
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.
References:
https://www.asp.net/signalr/overview/getting-started/tutorial-getting-started-with-signalr-and-mvc

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
hungry_ape9000
Highly Voted 4 years, 12 months ago
FINAL ANSWER: A, C & D
upvoted 5 times
...
arohh
Most Recent 4 years, 5 months ago
Worth to know, that newer versions of SignalR don't rely on jQuery, but on a plain JS library
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago