mirror of
https://github.com/ckaczor/WeatherService.git
synced 2026-01-13 17:23:11 -05:00
Change security mode
This commit is contained in:
193
App.config
193
App.config
@@ -1,82 +1,117 @@
|
|||||||
<?xml version="1.0" encoding="utf-8"?>
|
<?xml version="1.0" encoding="utf-8"?>
|
||||||
<configuration>
|
<configuration>
|
||||||
<configSections>
|
<configSections>
|
||||||
<sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
<sectionGroup name="applicationSettings"
|
||||||
<section name="WeatherService.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
|
type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
|
||||||
</sectionGroup>
|
<section name="WeatherService.Settings"
|
||||||
</configSections>
|
type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
|
||||||
<startup>
|
requirePermission="false" />
|
||||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5" />
|
</sectionGroup>
|
||||||
</startup>
|
</configSections>
|
||||||
<applicationSettings>
|
<startup>
|
||||||
<WeatherService.Settings>
|
<supportedRuntime version="v4.0"
|
||||||
<setting name="LogDatabase" serializeAs="String">
|
sku=".NETFramework,Version=v4.5" />
|
||||||
<value>False</value>
|
</startup>
|
||||||
</setting>
|
<applicationSettings>
|
||||||
<setting name="LcdTemplate" serializeAs="String">
|
<WeatherService.Settings>
|
||||||
<value />
|
<setting name="LogDatabase"
|
||||||
</setting>
|
serializeAs="String">
|
||||||
<setting name="PollingInterval" serializeAs="String">
|
<value>False</value>
|
||||||
<value>00:00:01</value>
|
</setting>
|
||||||
</setting>
|
<setting name="LcdTemplate"
|
||||||
<setting name="DatabaseFile" serializeAs="String">
|
serializeAs="String">
|
||||||
<value>C:\WeatherCenter\WeatherCenter.sdf</value>
|
<value />
|
||||||
</setting>
|
</setting>
|
||||||
<setting name="SignalR_ListenUrl" serializeAs="String">
|
<setting name="PollingInterval"
|
||||||
<value>http://*:9090</value>
|
serializeAs="String">
|
||||||
</setting>
|
<value>00:00:01</value>
|
||||||
<setting name="SignalR_ConnectUrl" serializeAs="String">
|
</setting>
|
||||||
<value>http://localhost:9090</value>
|
<setting name="DatabaseFile"
|
||||||
</setting>
|
serializeAs="String">
|
||||||
</WeatherService.Settings>
|
<value>C:\WeatherCenter\WeatherCenter.sdf</value>
|
||||||
</applicationSettings>
|
</setting>
|
||||||
<system.serviceModel>
|
<setting name="SignalR_ListenUrl"
|
||||||
<bindings>
|
serializeAs="String">
|
||||||
<webHttpBinding>
|
<value>http://*:9090</value>
|
||||||
<binding name="webHttpBindingWithJson" crossDomainScriptAccessEnabled="true" />
|
</setting>
|
||||||
</webHttpBinding>
|
<setting name="SignalR_ConnectUrl"
|
||||||
</bindings>
|
serializeAs="String">
|
||||||
<services>
|
<value>http://localhost:9090</value>
|
||||||
<service behaviorConfiguration="Default" name="WeatherService.WeatherServiceDuplex">
|
</setting>
|
||||||
<endpoint address="" binding="netTcpBinding" contract="WeatherService.IWeatherServiceDuplex" />
|
</WeatherService.Settings>
|
||||||
<endpoint address="mex" binding="mexTcpBinding" contract="IMetadataExchange" />
|
</applicationSettings>
|
||||||
<host>
|
<system.serviceModel>
|
||||||
<baseAddresses>
|
<bindings>
|
||||||
<add baseAddress="net.tcp://server:9001" />
|
<webHttpBinding>
|
||||||
</baseAddresses>
|
<binding name="webHttpBindingWithJson"
|
||||||
</host>
|
crossDomainScriptAccessEnabled="true" />
|
||||||
</service>
|
</webHttpBinding>
|
||||||
<service behaviorConfiguration="Default" name="WeatherService.WeatherService">
|
<netTcpBinding>
|
||||||
<endpoint address="json" binding="webHttpBinding" bindingConfiguration="webHttpBindingWithJson" contract="WeatherService.IWeatherService" />
|
<binding name="netTcpBindingNoSecurity">
|
||||||
<host>
|
<security mode="None"></security>
|
||||||
<baseAddresses>
|
</binding>
|
||||||
<add baseAddress="http://server:9000" />
|
</netTcpBinding>
|
||||||
</baseAddresses>
|
</bindings>
|
||||||
</host>
|
<services>
|
||||||
</service>
|
<service behaviorConfiguration="Default"
|
||||||
</services>
|
name="WeatherService.WeatherServiceDuplex">
|
||||||
<behaviors>
|
<endpoint address=""
|
||||||
<serviceBehaviors>
|
binding="netTcpBinding"
|
||||||
<behavior name="Default">
|
bindingConfiguration="netTcpBindingNoSecurity"
|
||||||
<serviceMetadata httpGetEnabled="true" />
|
contract="WeatherService.IWeatherServiceDuplex" />
|
||||||
</behavior>
|
<endpoint address="mex"
|
||||||
</serviceBehaviors>
|
binding="mexTcpBinding"
|
||||||
</behaviors>
|
contract="IMetadataExchange" />
|
||||||
</system.serviceModel>
|
<host>
|
||||||
<runtime>
|
<baseAddresses>
|
||||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
<add baseAddress="net.tcp://server:9001" />
|
||||||
<dependentAssembly>
|
</baseAddresses>
|
||||||
<assemblyIdentity name="Microsoft.AspNet.SignalR.Core" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
</host>
|
||||||
<bindingRedirect oldVersion="0.0.0.0-2.0.3.0" newVersion="2.0.3.0" />
|
</service>
|
||||||
</dependentAssembly>
|
<service behaviorConfiguration="Default"
|
||||||
<dependentAssembly>
|
name="WeatherService.WeatherService">
|
||||||
<assemblyIdentity name="Microsoft.Owin" publicKeyToken="31bf3856ad364e35" culture="neutral" />
|
<endpoint address="json"
|
||||||
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0" newVersion="2.1.0.0" />
|
binding="webHttpBinding"
|
||||||
</dependentAssembly>
|
bindingConfiguration="webHttpBindingWithJson"
|
||||||
<dependentAssembly>
|
contract="WeatherService.IWeatherService" />
|
||||||
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
|
<host>
|
||||||
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0" newVersion="6.0.0.0" />
|
<baseAddresses>
|
||||||
</dependentAssembly>
|
<add baseAddress="http://server:9000" />
|
||||||
</assemblyBinding>
|
</baseAddresses>
|
||||||
</runtime>
|
</host>
|
||||||
|
</service>
|
||||||
|
</services>
|
||||||
|
<behaviors>
|
||||||
|
<serviceBehaviors>
|
||||||
|
<behavior name="Default">
|
||||||
|
<serviceMetadata httpGetEnabled="true" />
|
||||||
|
</behavior>
|
||||||
|
</serviceBehaviors>
|
||||||
|
</behaviors>
|
||||||
|
</system.serviceModel>
|
||||||
|
<runtime>
|
||||||
|
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Microsoft.AspNet.SignalR.Core"
|
||||||
|
publicKeyToken="31bf3856ad364e35"
|
||||||
|
culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-2.0.3.0"
|
||||||
|
newVersion="2.0.3.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Microsoft.Owin"
|
||||||
|
publicKeyToken="31bf3856ad364e35"
|
||||||
|
culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-2.1.0.0"
|
||||||
|
newVersion="2.1.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
<dependentAssembly>
|
||||||
|
<assemblyIdentity name="Newtonsoft.Json"
|
||||||
|
publicKeyToken="30ad4fe6b2a6aeed"
|
||||||
|
culture="neutral" />
|
||||||
|
<bindingRedirect oldVersion="0.0.0.0-6.0.0.0"
|
||||||
|
newVersion="6.0.0.0" />
|
||||||
|
</dependentAssembly>
|
||||||
|
</assemblyBinding>
|
||||||
|
</runtime>
|
||||||
</configuration>
|
</configuration>
|
||||||
Reference in New Issue
Block a user