A self-hosted Windows Communicat

题目

A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP binding with a custom principal permission mode. The binding requires users to provide their Windows logon credentials. You need to retrieve the identity of the caller.What are two possible properties you can use to achieve this goal? (Each correct answer presents a complete solution Choose two)()

  • A、Thread.CurrentPrincipal.Identity.Name
  • B、HttpContext.Current.User.Identity.Name
  • C、ServiceSecurityContext.Current.PrimaryIdentity.Name
  • D、OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

操作系统是计算机系统中最重要、最基本的系统软件,在PC市场Windows系列操作系统一直占主导地位。在下列Windows操作系统中,从时间来看发布的顺序是

A.Windows 98→Windows Me→Windows Vista→Windows XP

B.Windwos 7→Windows 2000→Windows XP→Windows Vista

C.Windows 98→Windows XP→Windows Vista→Windows 7

D.Windows 7→Windows 98→Windows XP→Windows NT


正确答案:B

第2题:

(37)操作系统是计算机系统中最重要、最基本的系统软件,在 PC 市场Windows系列操作系统一直占主导地位。在下列Windows操作系统中,从时间来看发布的顺序是

A)Windows 98→Windows Me→Windows Vista→Windows XP

B)Windwos 7→Windows 2000→Windows XP→Windows Vista

C)Windows 98→Windows XP→Windows Vista→Windows 7

D)Windows 7→Windows 98→Windows XP→Windows NT


正确答案:C

第3题:

Windows XP是()的换代产品。

A.Windows 98

B.Windows ME

C.Windows 2003

D.Windows 2000


参考答案:D

第4题:

Windows包括Windows 95、Windows 98 Windows NT、Windows 2000以及Windows XP等多个操作系统产品。 ( )

此题为判断题(对,错)。


正确答案:√

第5题:

Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the lTimeService service interface in the TimeService class.You need to configure the service endpoint for HTTP communication. How should you define the service and endpoint tags?()

A.

B.

C.

D.


参考答案:D

第6题:

Windows9X系列,包括Windows95,Windows98,()以及WindowsMe。

A.Windows2000

B.WindowsNT

C.Windows98se

D.windows3.x


参考答案:C

第7题:

following code segment.[ServiceContract]public interface ICustomerService{...}public class CustomerService : ICustomerService{...}The service is self-hosted in a console application. Older client applications access the service at http://contoso.com:8080/CustomerService/V1.Newer client applications access the service at http://contoso.com:8080/CustomerService/V2.You need to ensure that any client application can access the service at either address.Which code segment should you use?()

A.

B.

C.

D.


参考答案:C

第8题:

  按操作系统发布的先后顺序,正确的是

A、Windows95、Windows98、Dos、windows XP

B、Windows95、Windows98、WindowsXP、Dos

C、Dos、Windows95、Windows98、windowsXP

D、Dos、WindowsXP、Windows95、Windows98


C

【解析】DOS、Windows95、Windows98、WindowsXP ,vista,windows7

第9题:

A Windows Communication Foundation (WCF) service is self-hosted in a console application. The service implements the IDataAccess contract, which is defined in the MyApplication namespace. The service is implemented in a class named DataAccessService which implements the IDataAccess interface and also is defined in the MyApplication namespace. The hosting code is as follows. (Line numbers are included for reference only.)01 static void Main(string[] args)02 {03 ServiceHost host;04 ...05 host.Open();06 Console.ReadLine();07 host.Close();08 }You need to create a ServiceHost instance and assign it to the host variable. You also need to instantiate the service host.Which line of code should you insert at line 04?()

A. host = new ServiceHost("MyApplication.DataAccessService");

B. host = new ServiceHost("MyApplication.DataAccess");

C. host = new ServiceHost(typeof(IDataAccess));

D. host = new ServiceHost(typeof(DataAccessService));


参考答案:D

第10题:

什么版本的Windows可以被升级到Windows 2000 rofessional?

A.只有Windows 95和Windows98

B.只有Windows NT 4.0 Workstations和Windows 98

C.只有Windows NT 3.51及4.0 Workstations和Windows 98

D.Windows NT 3.51及4.0 Workstations、Windows 95和Windows 98都可以被升级到Windows 2000 rofessional


正确答案D

更多相关问题