2010-12-10 54 views
0

因此,我有一个简单的服务,有一些套接字,请求发回一些结果。是否有网络服务的MS企业库应用程序块

我们希望让这个更友好一点,允许通过组策略配置与本地配置合并,所以我偶然发现了ManageableConfigurationSource。

现在我在考虑如何更广泛地使用企业库,因为使用核心和通用配置似乎是一个很好的选择。

是否有应用程序块(s)表示,提供“方便”访问

  • “配置SSL服务器”从中建立在顶部您的网络? 关键字可配置。
  • ActiveMQ的
  • WMI

编辑(MSMQ):
什么我主要感兴趣的是通过组策略来配置,有点质量分布式服务的能力。
管理员似乎不希望去机器的数百并单独设置每个配置的IP的IP或证书的名称和商店,以便在组策略分发时找到它。

抱歉,分心 - 该服务将使用WMI从本地PC获取数据,如性能和事件。不使用WMI或MQ作为我们自定义数据的传输。这些应用程序块是次要的。

MS PPT Pres I found helpful based on the answer about using WCF

因此,有异常处理和验证与WCF,但没有网络配置的一些应用程序块。眼看The ever so helpfuly named 'Write Less code and play more golf'

  • Microsoft.Practices.EnterpriseLibrary.ExceptionHandling.WCF
  • Microsoft.Practices.EnterpriseLibrary.Validation.Integration.WCF

编辑:

假设你有一个简单的配置是这样,你需要做出100主机的。为什么我不能通过组策略推送这个通用配置,而不是通过其他方法修改每个主机的app.config?

当然,我所能做的工作的一部分,并推证书导入通过组策略的商店,但我需要分发到大量用户,在某些情况下,主机甚至可以改变角色,并政策,改变。
是否适用于不同策略(如dev/test/production)的1个或多个配置。

<client> 
    <endPoint address="tcp://Service1:1024" behaviorConfiguration="localhost" /> 
    <endPoint address="tcp://Service2:1024" behaviorConfiguration="secure-domain1" /> 
    <endPoint address="tcp://Service3:1099" behaviorConfiguration="secure-domain1" /> 
    <endPoint address="tcp://Service4:1024" behaviorConfiguration="secure-domain1" /> 
    <endPoint address="tcp://Service5:1024" behaviorConfiguration="secure-domain2" /> 
    <endPoint address="tcp://Service6:1048" behaviorConfiguration="secure-domain2" /> 
    <endPoint address="tcp://Service7:1024" behaviorConfiguration="secure-domain2" /> 
</client> 
<behaviors> 
    <behavior name="secure-domain1"> 
     <clientCredentials> 
      <clientCertificate storeLocation="CurrentUser" storeName="My" x509FindType="FindBySubjectName" findValue="Domain1"/> 
      <serviceCertificate> 
       <authentication certificateValidationMode="ChainTrust" trustedStoreLocation="LocalMachine"/> 
      </serviceCertificate> 
     </clientCredentials> 
     <networking shortRetryInterval="300" shortRetryAttempts="5" longRetryInterval="1800"/> 
    </behavior> 
    <behavior name="secure-domain2"> 
     <clientCredentials> 
      <clientCertificate storeLocation="CurrentUser" storeName="My" x509FindType="FindBySubjectName" findValue="Domain2"/> 
      <serviceCertificate> 
       <authentication certificateValidationMode="ChainOrPeerTrust" trustedStoreLocation="LocalMachine"/> 
      </serviceCertificate> 
     </clientCredentials> 
     <networking shortRetryInterval="600" shortRetryAttempts="2" longRetryInterval="3600"/> 
    </behavior> 
    <behavior name="localhost"> 
     <networking shortRetryInterval="60" shortRetryAttempts="3" longRetryInterval="600"/> 
     <clientCredentials> 
      <serviceCertificate> 
       <authentication certificateValidationMode="None"/> 
      </serviceCertificate> 
     </clientCredentials> 
    </behavior> 
</behaviors> 
+0

您通常使用组策略来修改文本文件吗? – 2011-04-06 19:50:35

+0

不是个人的,也不是我的计划。如果我能够使用ManageableConfigurationSource,例如这将合并来自app.config文件的设置与来自注册表中策略部分的设置,以从组策略或各种其他来源获取它。 – 2011-04-06 22:55:30

回答

2

WCF是你的问题的答案。

相关问题