2
樣品的編號:如何使用C#連接到Documentum並使用Emc.Documentum.FS.Runtime而不使用Module.info標籤的app.config?使用的app.config
ContextFactory contextFactory = ContextFactory.Instance;
IServiceContext serviceContext = contextFactory.NewContext();
的app.config部我想在代碼中設置具有API,而不是直接讀取。
<Emc.Documentum>
<FS>
<ConfigObject type="Emc.Documentum.FS.Runtime.Impl.Configuration.ConfigObject, Emc.Documentum.FS.Runtime"
defaultModuleName="core" registryProviderModuleName="core" requireSignedUcfJars="true">
<ModuleInfo name="core" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services"/>
<ModuleInfo name="search" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services"/>
<ModuleInfo name="bpm" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services"/>
<ModuleInfo name="collaboration" protocol="http" host="documentum.current.dev" port="9080" contextRoot="services" />
</ConfigObject>
</FS>
</Emc.Documentum>
謝謝你,我能找到關於這一點,應該使我們的文章來配置我們需要通過手動編輯AppConfig單例類的屬性。 https://community.emc.com/message/454938#454938 – 2012-02-18 21:55:22