2010-12-10 55 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是你的問題的答案。

相關問題