Файл DisiService.exe.config предназначен для хранения информации о настройках службы DISI.
Структура файла настроек:
 
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <configSections>
    {Настройки службы DISI}
  </configSections>
  <DisiAgent>
    {Настройки агента службы DISI}
  </DisiAgent>
  <connectionStrings>
    {Настройки подключения к базе данных DIRECTUM и для запуска процессов SBRte}
  </connectionStrings>
  <appSettings>
    {Параметры работы службы DISI}
  </appSettings>
  <system.serviceModel>
    {Настройки подключения к веб-сервисам WCF}
  </system.serviceModel>
  <startup>
    {Список поддерживаемых версий .NET Framework}
  </startup>
</configuration>
configSections – содержит описание секций настроек службы DISI.
system.serviceModel – предназначена для настройки подключения к веб-сервису Synerdocs. Параметр address элемента endpoint содержит адрес веб-сервиса системы обмена.
Секции configSections и system.serviceModel являются стандартными элементами конфигурационных файлов .NET-приложений. Подробнее описание структуры секций см. в документации Microsoft, статьи «<configuration> Element» и «<system.serviceModel>».
DisiAgent – хранит настройки агента службы DISI.
connectionStrings – содержит настройки подключения к базе данных DIRECTUM.
appSettings – предназначена для настройки вспомогательных параметров службы DISI.
startup – хранит список поддерживаемых версий .NET Framework.
 Пример
  Пример
|   <?xml version="1.0" encoding="utf-8" ?><configuration>
 <configSections>
 <section name="DisiAgent"
 type="NpoComputer.Disi.ServiceAgent.Settings.DisiAgentSection,
 NpoComputer.Disi.ServiceAgent" />
 </configSections>
 
 <DisiAgent>
 <Loading CheckInterval="300" MaxOutcomeMessagesAmount="50"
 MaxOutcomeMessageSize="26214400">
 <DocflowRegulations PollingPeriod="300" FetchSize="100" />
 <StatusSynchronization PollingPeriod="600" FetchSize="100" />
 <CounteragentSynchronization PollingPeriod="600" FetchSize="100" />
 </Loading>
 <Cache CacheFolder="C:\DISI\Cache" />
 <Proxy ProxyServer="proxyserver" ProxyUser = "user1" ProxyPassword = "123"
 IsPasswordEncrypted ="false" />
 </DisiAgent>
 
 <connectionStrings>
 <!-- Параметры подключения службы DISI к базе данных DIRECTUM -->
 <add name="Database" connectionString="Data Source=;
 Initial Catalog=;Integrated Security=False;User ID=;Password="/>
 <!-- Пользователь для запуска процессов SBRte -->
 <add name="SBRTE" connectionString="Integrated Security=True;
 User ID=;Password="/>
 </connectionStrings>
 
 <appSettings>
 <add key="UseServerCertificateValidation" value="true" />
 <add key="Languages" value="ru-RU=Русский (Россия);en-US=English (United
 States)" />
 <add key="DefaultLanguage" value="ru-RU" />
 <add key="SBRTEProcCount" value="1" />
 <add key="SBRTEMaxUserPerProcess" value="10" />
 <add key="ConnectionPoolSize" value="10" />
 <add key="AllowDirtyReading" value="True" />
 <add key="KeepSessionAlive" value="True" />
 </appSettings>
 
 <system.serviceModel>
 <behaviors>
 <serviceBehaviors>
 <behavior name="DisiServiceBehaviour">
 <serviceMetadata httpGetEnabled="true" />
 </behavior>
 </serviceBehaviors>
 </behaviors>
 <services>
 <service behaviorConfiguration="DisiServiceBehaviour"
 name="NpoComputer.Disi.DisiServiceImplementation">
 <endpoint address="" binding="basicHttpBinding"
 bindingConfiguration="BasicHttpBinding_IDisiService"
 name="BasicHttpBinding_IDisiService"
 contract="NpoComputer.Disi.IDisiService" />
 <endpoint address="mex" binding="mexHttpBinding"
 bindingConfiguration="" name="MexHttpBinding_IMetadataExchange"
 contract="IMetadataExchange" />
 <host>
 <baseAddresses>
 <add baseAddress=""/>
 </baseAddresses>
 </host>
 </service>
 </services>
 <bindings>
 <basicHttpBinding>
 <binding name="BasicHttpBinding_IDisiService" closeTimeout="00:01:00"
 openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
 maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647"
 <readerQuotas maxArrayLength="2147483647"
 maxStringContentLength="2147483647" />
 </binding>
 </basicHttpBinding>
 </bindings>
 </system.serviceModel>
 
 <startup>
 <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
 </startup>
 </configuration>
 |