题目内容

You are developing a client application that uses the following code to consume a Windows Communication Foundation (WCF) service.(Line numbers are included for reference only.)01 BasicHttpBinding myBinding = new BasicHttpBinding();02 EndpointAddress myEndpointAddress = new EndpointAddress("http://contoso.com/TaxService.svc");03 ...04 ITaxService client = channelFactory.CreateChannel();05 string data = client.GetData(1);You need to consume the service.Which code segment should you insert at line 03?()

A. var channelFactory = new ChannelFactory();
B. var channelFactory = new ChannelFactory(myBinding);
C. var channelFactory = new ChannelFactory(myBinding, myEndpointAddress);
D. var channelFactory = new ChannelFactory("http://contoso.com/TaxService.svc");

查看答案
更多问题

简答题 什么叫传信率?什么叫码元速率?说明两者的不同与关系。

简答题 光纤有什么特点?

简答题 什么是防火墙?

简答题 在安装了防火墙之后,为什么还需要进行入侵检测?

答案查题题库