如何在没有ModuleInfo标签的app.config的情况下使用C#连接到带有Emc.Documentum.FS.Runtime的Documentum?

时间:2012-02-16 16:49:36

标签: c# .net documentum documentum6.5

使用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>

1 个答案:

答案 0 :(得分:-1)