mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-25 20:00:31 +08:00
97 lines
5.0 KiB
XML
97 lines
5.0 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<configuration>
|
|
<configSections>
|
|
<section name="Opc.Ua.ServerConfiguration" type="Opc.Ua.ApplicationConfigurationSection,Opc.Ua.Core"/>
|
|
<section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false"/>
|
|
|
|
<!-- For more information on Entity Framework configuration, visit http://go.microsoft.com/fwlink/?LinkID=237468 --></configSections>
|
|
<connectionStrings>
|
|
<!-- creates gdsdb in user folder -->
|
|
<add name="gdsdbEntities" connectionString="metadata=res://*/gdsdb.csdl|res://*/gdsdb.ssdl|res://*/gdsdb.msl;provider=System.Data.SqlClient;provider connection string="Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=gdsdb;MultipleActiveResultSets=true;Integrated Security=True;Pooling=False"" providerName="System.Data.EntityClient"/>
|
|
<!-- opens existing gdsdb.mdl in project folder -->
|
|
<!--add name="gdsdbEntities" connectionString="metadata=res://*/gdsdb.csdl|res://*/gdsdb.ssdl|res://*/gdsdb.msl;provider=System.Data.SqlClient;provider connection string="Server=(localdb)\MSSQLLocalDB;MultipleActiveResultSets=true;Integrated Security=true;AttachDbFileName=|DataDirectory|\gdsdb.mdf;"" providerName="System.Data.EntityClient"/-->
|
|
</connectionStrings>
|
|
|
|
<system.serviceModel>
|
|
<!--
|
|
UA servers built with the SDK use the Opc.Ua.SessionEndpoint class to implement the ISessionEndpoint
|
|
contract. It is possible to add additional behaviors in the configuration file by referencing this
|
|
service. For example, the configuration in this file turns on metadata publishing.
|
|
-->
|
|
<services>
|
|
<service name="Opc.Ua.SessionEndpoint" behaviorConfiguration="Opc.Ua.SessionEndpoint.Behavior">
|
|
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
|
|
</service>
|
|
</services>
|
|
<!-- Servers deployed in production environments should turn the httpGetEnabled and includeExceptionDetailInFaults options off -->
|
|
<behaviors>
|
|
<serviceBehaviors>
|
|
<behavior name="Opc.Ua.SessionEndpoint.Behavior">
|
|
<serviceMetadata httpGetEnabled="true"/>
|
|
<serviceDebug includeExceptionDetailInFaults="true"/>
|
|
</behavior>
|
|
</serviceBehaviors>
|
|
</behaviors>
|
|
<!--
|
|
Uncommenting this <diagnostics> block will turn on message logging. The contents and the location of the
|
|
log file are specified in the <system.diagnostics> block.
|
|
-->
|
|
<!--
|
|
<diagnostics>
|
|
<messageLogging logEntireMessage="true" maxMessagesToLog="3000" logMessagesAtServiceLevel="true" logMalformedMessages="true" logMessagesAtTransportLevel="true"/>
|
|
</diagnostics>
|
|
-->
|
|
</system.serviceModel>
|
|
<!--
|
|
<system.diagnostics>
|
|
<sources>
|
|
<source name="System.ServiceModel" switchValue="Verbose, ActivityTracing">
|
|
<listeners>
|
|
<add type="System.Diagnostics.DefaultTraceListener" name="Default"/>
|
|
<add name="ServiceModel Listener"/>
|
|
</listeners>
|
|
</source>
|
|
<source name="System.ServiceModel.MessageLogging">
|
|
<listeners>
|
|
<add type="System.Diagnostics.DefaultTraceListener" name="Default"/>
|
|
<add name="ServiceModel Listener"/>
|
|
</listeners>
|
|
</source>
|
|
</sources>
|
|
<sharedListeners>
|
|
<add initializeData="GlobalDiscoveryServer.svclog" type="System.Diagnostics.XmlWriterTraceListener, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" name="ServiceModel Listener" traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId, Callstack" />
|
|
</sharedListeners>
|
|
</system.diagnostics>
|
|
-->
|
|
<Opc.Ua.ServerConfiguration>
|
|
<ConfigurationLocation xmlns="http://opcfoundation.org/UA/SDK/Configuration.xsd">
|
|
<FilePath>Opc.Ua.GlobalDiscoveryServer.Config.xml</FilePath>
|
|
</ConfigurationLocation>
|
|
</Opc.Ua.ServerConfiguration>
|
|
<startup>
|
|
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6"/>
|
|
</startup>
|
|
<entityFramework>
|
|
<defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
|
|
<parameters>
|
|
<parameter value="v11.0"/>
|
|
</parameters>
|
|
</defaultConnectionFactory>
|
|
<providers>
|
|
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer"/>
|
|
</providers>
|
|
</entityFramework>
|
|
<runtime>
|
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="System.Net.Http" publicKeyToken="b03f5f7f11d50a3a" culture="neutral"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-2.2.18.0" newVersion="2.2.18.0"/>
|
|
</dependentAssembly>
|
|
<dependentAssembly>
|
|
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
|
|
<bindingRedirect oldVersion="0.0.0.0-9.0.0.0" newVersion="9.0.0.0"/>
|
|
</dependentAssembly>
|
|
</assemblyBinding>
|
|
</runtime>
|
|
</configuration>
|