A NET Framework remoting server hosts a class library that contains the

A net framework remoting server hosts a class library

This preview shows page 7 - 9 out of 11 pages.

A .NET Framework remoting server hosts a class library that contains the following class.public ref class SimpleMathClass : public MarshalByRefObject{ public: void LogData(DataRow^ dr) { ... Users of a Windows-based client application report that the application often becomes nonresponsive. You discover that the application makes calls to the LogData method that take several seconds to return. You need to ensure that calls to the LogData method can be processed without causing the client application to become nonresponsive. What should you do? }}; A. Modify the class to implement the IAsynchResult interface. B. Modify the method so that it is an anonymous method. C. Apply the OneWayAttribute attribute to the LogData method. D. Apply the SoapRpcMethodAttribute attribute to the LogData method and initialize its OneWay member to True. Answer: C QUESTION: 237 You write a .NET Framework remoting application that broadcasts messages to client computers through a central server by raising events on the client computers. Message details are contained in an argument in the event delegate, as shown in the following code segment. public ref class BroadcastEventArgs {public: String^ Message;130
Image of page 7
public: String^ Sender;public: DateTime TimeSent;}; public delegate void MessageArrivedHandler(BroadcastEventArgs^ args);You need to ensure that the client computer can access the message details contained in the eventargument. Your solution cannot change the common language runtime (CLR) securityrestrictions. What should you do? C QUESTION: 238 A .NET Framework remoting server hosts a class library that contains the following class.public ref class SimpleMathClass : public MarshalByRefObject { public: int LogData(DataRow dr) { //Lengthy database calls... }}; Users of a Windows-based client application report that the application often becomes nonresponsive. You discover that the application makes calls to the LogData method that take several seconds to return. The return value is required to generate reports in the client application. You need to ensure that calls to the LogData method can be processed without making the client application nonresponsive. What should you do?
Image of page 8
Image of page 9

You've reached the end of your free preview.

Want to read all 11 pages?

  • Spring '18
  • Dr. Moez
  • .NET Framework, Client-server, client application, 111-056 Examcollection, Passleader 111-056, 111-056 Promo Code, 111-056 Discount Coupon, Download Free 111-056 Dumps

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture