WCF serviceactivation枚举

时间:2013-09-07 23:47:33

标签: .net wcf

我需要在web.config文件中添加“serviceactivation”元素。但是,我无法在网络上的任何地方找到4个枚举的含义以及用于“添加服务 =”的哪个。

以下是web.config中包含每个枚举的代码。如何确定使用哪一个?

<system.serviceModel>
    <serviceHostingEnvironment minFreeMemoryPercentageToActivateService="0">
      <serviceActivations>
        <add service="System.Web.ApplicationServices.AuthenticationService" relativeAddress="http://yeagertech.com/yeagerte/YeagerTechWcfService.YeagerTechWcfService.svc"/>
      </serviceActivations>
    </serviceHostingEnvironment>

NLog.LogReceiverService.LogReceiverForwardingService
System.Web.ApplicationServices.AuthenticationService
System.Web.ApplicationServices.ProfileService
System.Web.ApplicationServices.RoleService

1 个答案:

答案 0 :(得分:1)

您应该将其设置为实现服务的类。我在这里展示了如何使用此设置的示例。

http://rickrainey.com/2013/08/30/hosting-a-wcf-service-in-an-azure-web-role-with-http-tcp-endpoints/