题目内容 (请给出正确答案)
[主观题]

A self-hosted Windows Communication Foundation (WCF) service uses a secure HTTP binding wi

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

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“A self-hosted Windows Communic…”相关的问题

第1题

Windows Communication Foundation (WCF) service is self-hosted in a console application. Th

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.Windows Communication Foundation (WCF) service is

B.Windows Communication Foundation (WCF) service is

C.Windows Communication Foundation (WCF) service is

D.Windows Communication Foundation (WCF) service is

点击查看答案

第2题

You have a self-hosted Windows Communication Foundation (WCF) service. You need to configu

You have a self-hosted Windows Communication Foundation (WCF) service. You need to configure the service to provide an X509 certificate during authentication. What should you use to configure the service?()

A. the Certificate property of the X509 Certificate lnitiator Service Credential class

B. the SetCertificate method of the X509 Certificate Initiator Service Credential class

C. the SetCertificate method of the X509 Certificate Recipient Service Credential class

D. the TrustedStoreLocation property of the X509 Certificate Recipient Service Credential class

点击查看答案

第3题

A Windows Communication Foundation (WCF) service is self-hosted in a console application.

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));

点击查看答案

第4题

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.following code segment.[ServiceContract]public int

B.following code segment.[ServiceContract]public int

C.following code segment.[ServiceContract]public int

D.following code segment.[ServiceContract]public int

点击查看答案

第5题

X Window系统有哪些主要特点?
点击查看答案

第6题

It is important that we().

A.shall close the window before we leave

B.will close the window before we leave

C.must close the window before we leave

D.close the window before we leave

点击查看答案

第7题

当你感觉有些热时,你可以说()

A.Open the window

B.lose the window

C.on't open the window

点击查看答案

第8题

MySQL只能运行于window平台上。
点击查看答案

第9题

Window有两种形式:Frame(框架)和_____.(对话框)。
点击查看答案
发送账号至手机
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
赏学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
赏学吧
点击打开微信