exam questions

Exam 70-483 All Questions

View all questions & answers for the 70-483 exam

Exam 70-483 topic 1 question 89 discussion

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

HOTSPOT -
You are developing an application that includes a Windows Communication Foundation (WCF) service.
The service includes a custom TraceSource object named ts and a method named DoWork. The application must meet the following requirements:
✑ Collect trace information when the DoWork() method executes.
✑ Group all traces for a single execution of the DoWork() method as an activity that can be viewed in the WCF Service Trace Viewer Tool.
You need to ensure that the application meets the requirements.
How should you complete the relevant code? (To answer, select the correct code segment from each drop-down list in the answer area.)
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:

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
HgstExam
Highly Voted 4 years, 9 months ago
Question is Incomplete: From other sources: ------------------------------------------------------------------------ static TraceSource ts = new TraceSource("Contoso", SourceLevels.ActivityTracing); public void DoWork() { var originalId = Trace.CorrelationManager.ActivityId; try { var guid = Guid.NewGuid(); ts.TraceTransfer(1, "Changing Activity", guid); Trace.CorrelationManager.ActivityId = guid; ts.TraceEvent(TraceEventType.Start, 0, "Start"); } finally { ts.TraceTransfer(1, "Chaning Activity", originalId); ts.TraceEvent(TraceEventType.Stop, 0, "Stop"); Trace.CorrelationManager.ActivityId = originalId; } }
upvoted 5 times
...
noussa
Most Recent 4 years, 5 months ago
this is the link to the full question: https://www.briefmenow.org/microsoft/you-need-to-ensure-that-the-application-meets-the-requi/
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 ...