Skip to main content

QUESTION 7

You work as the application developer at Certkiller .com. You are developing a new application named Certkiller App12.

Certkiller App12 must be configured to receive events asynchronously. You define two instances named Wq1EventQuery and ManagementEventWatcher respectively.

Wq1EventQuery will list those events and event conditions for which Certkiller App12 should respond. ManagementEventWatcher will subscribe to all events matching the query.

Which two additional actions should you still perform to enable Certkiller App12 to receive events asynchronously?

Choose two correct answers. Each answer presents only part of the complete solution.

 

A. Call the Start method of the ManagementEventWatcher to start listening for events.

B. To configure a listener for events, use the EventArrived event of the ManagementEventWatcher.

C. To wait for the events, use the WaitFor NextEvent method of the ManagementEventWatcher.

D. Create an event handler class that contains a method which receives an ObjectReadyEventArgs parameter.

E. Use the Stopped event of the ManagementEventWatcher to configure a listener for events.

 

Answer: A,B

 

Explanation: The ManagementEventWatcher will not start to listen (hence the app cannot respond to Async messages) until the start method is called. Once the ManagementEventWatcher is listening it will trigger an EventArrived event every time an event occurs that matches the query. You should provide a listener for the EventArrived event to perform any custom handling.

WaitForNextEvent method is synchronous i.e the current thread will wait until a matching event occurs

ObjectReadyEventArgs holds data for the ObjectReadyEvent.
The Stopped event is triggered when the ManagmentEventWatcher cancels it's subscription i.e is no longer interested in receiving notification of events.

Comments

Popular posts from this blog

Top Open Source Web-Based Project Management Software

This is an user contributed article. Project management software is not just for managing software based project. It can be used for variety of other tasks too. The web-based software must provide tools for planning, organizing and managing resources to achieve project goals and objectives. A web-based project management software can be accessed through an intranet or WAN / LAN using a web browser. You don't have to install any other software on the system. The software can be easy of use with access control features (multi-user). I use project management software for all of our projects (for e.g. building a new cluster farm) for issue / bug-tracking, calender, gantt charts, email notification and much more. Obviously I'm not the only user, the following open source software is used by some of the biggest research organizations and companies world wild. For example, NASA's Jet Propulsion Laboratory uses track software or open source project such as lighttpd / phpbb use re

My organization went through the approval process of supporting the .NET Framework 2.0 in production. Do we need to go through the same process all...

My organization went through the approval process of supporting the .NET Framework 2.0 in production. Do we need to go through the same process all over again for the .NET Framework 3.0? Do I need to do any application compatibility testing for my .NET Framework 2.0 applications? Because the .NET Framework 3.0 only adds new components to the .NET Framework 2.0 without changing any of the components released in the .NET Framework 2.0, the applications you've built on the .NET Framework 2.0 will not be affected. You don’t need to do any additional testing for your .NET Framework 2.0 applications when you install the .NET Framework 3.0.

Google products for your Nokia phone

Stay connected with Gmail, Search, Maps and other Google products. Check products are available for your Nokia phone Featured Free Products Search - Find the information you need quickly and easily Maps - Locate nearby businesses and get driving directions Gmail - Stay connected with Gmail on the go YouTube - Watch videos from anywhere Sync - Synchronize your contacts with Google