A Windows Communication Foundation (WCF) solution provides a session-based counter.The service is self-hosted. The hosting code is as follows:ServiceHost host = new ServiceHost(typeof(CounterService));NetTcpBinding binding1 = new NetTcpBinding(SecurityMod

题目

A Windows Communication Foundation (WCF) solution provides a session-based counter.The service is self-hosted. The hosting code is as follows:ServiceHost host = new ServiceHost(typeof(CounterService));NetTcpBinding binding1 = new NetTcpBinding(SecurityMode.None);host.AddServiceEndpoint("MyApplication.ICounterService", binding1, "net.tcp://localhost:23456");host.Open();This service is currently exposed over TCP, but needs to be exposed to external clients over HTTP. Therefore, a new service endpoint is created with the following code:host.AddServiceEndpoint("MyApplication.ICounterService", binding2, "http://localhost:12345");You need to complete the implementation and ensure that the session-based counter will perform over HTTP as it does over TCP.What should you do?()

A.

B.

C.

D.


相似考题
更多“A Windows Communication Foundation (WCF) solution provides a session-based counter.The ser ”相关问题
  • 第1题:

    The government ____them with accommodation.

    A.offers

    B.gives

    C.provides


    参考答案:C

  • 第2题:

    Provides 3 properties that make an OS, a RTOS?


    正确答案:
     

  • 第3题:

    If the Shipowner has failed to carry out a term of a time charter-party whereby he undertakes to maintain the vessel in a seaworthy state,this only ______ the Charterer to sue him for damages,and not to repudiate the charter-party.

    A.complies

    B.entitles

    C.supplies

    D.provides


    正确答案:B

  • 第4题:

    溶液(solution)


    参考答案:是药物的水溶液,具有清洁、收敛作用,可用于对急性皮炎湿疹类疾病进行湿敷,以减轻充血水肿和清除分泌物及痂皮等。常用的溶液有3%硼酸溶液、0.05%~0.1%小檗碱溶液、1:8000高锰酸钾溶液、0.1%硫酸铜溶液等。

  • 第5题:

    AcustomerwithanEMCClariionCX700storageinstallationisconsideringanewIBMTotalStorageDS4500solution.WhichofthefollowingisanadvantageoftheIBMDS4500solution?()

    A.Hostportspeedof2Gb/s

    B.Three-yearhardwarewarranty

    C.HeterogeneousOperatingSystemsupport

    D.StorageManagersoftwarecomesstandardwithDS4000controllers


    参考答案:D

  • 第6题:

    下列属于核苷酸水平的回复突变的是()。

    A.AGC (Ser) ® ACC (Thr) ®AGC (Ser)

    B.AGC (Ser) ® AGG (Arg) ®AGT (Ser)

    C.AGC (Ser) ® ACC (Thr) ®CCC (Ala)

    D.AGC (Ser) ® ACC (Thr) ®GAA (Glu)


    AGC (Ser) ® ACC (Thr) ® AGC (Ser)