试题详情
- 单项选择题 You are developing a client application that consumes a Windows Communication Foundation (WCF) service. You use the svcutil.exe utility to create a proxy for the service. You use the svcutil.exe switches that generate asynchronous calls. GetFlight is a service operation that takes no parameters and returns a string. The GetFlightCallback method must be called when the service operation returns.You create an instance of the client proxy with the following code:var client = new TranvelServiceClient( );You need to ensure that a callback is received when the GetFlight operation is called asynchronously. Which code segment should you use?()
A、client.BeginGetFlight(GetFlightCallback, null); client.GetFlight();
B、client.GetFlight(); client.BeginGetFlight(GetFlightCallback, null);
C、client.GetFlightCompleted += new EventHandler
(GetFlightCallback); client.GetFlightAsync(); D、IAsyncResult asyncResult = client.BeginGetFlight(GetFlightCallback, client); client.EndGetFlight(asyncResult);
- C
关注下方微信公众号,在线模考后查看
热门试题
- You are
- 您正在开发一个很大的.NET Frame
- You load an XmlDocum
- You are p
- You have
- You are the network
- All consultant
- You create a master
- You are the network
- 你有一台运行Windows
- All client computers
- Your company&e
- our network contains
- You are t
- 为应用程序开发人员上班 Certkil
- You are the network
- Your network&e
- Youarethenetworkadmi
- You are writing a m
- You are the network