A .NET Framework remoting server hosts a class library that contains the following class.
public class SimpleMathClass : MarshalByRefObject
{
public void 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.
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.