xuruiqian
2021-05-25 c0bbcd97fa2f130a7a60d02873fbf9038bdd4c15
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<?xml version="1.0"?>
<configuration>
  <configSections>
    <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
  </configSections>
  <appSettings>
    <add key="aspnet:UseTaskFriendlySynchronizationContext" value="true"/>
    <add key="IgnoringAntPathRequestMatcher" 
         value="CalculateDataServices.svc,EarthquakeAffectedAreaServices.svc,GrasslandFloodDisasterServices.svc,GrasslandFireDisasterServices.svc" />
  </appSettings>
  <connectionStrings>
    <add name="Default" connectionString="Data Source=39.98.182.30;port=3306;Initial Catalog=calculte;user id=root;password=abcd,.1234;" providerName="MySql.Data.MySqlClient" />
    <!--<add name="Default" connectionString="data source=.;initial catalog=GTDBOMTS;Uid=sa;pwd=sasa;App=EntityFramework" providerName="System.Data.SqlClient" />-->
  </connectionStrings>
  <system.web>
    <customErrors mode="Off" />
    <compilation debug="true" targetFramework="4.6.1" />
    <authentication mode="None" />
    <httpRuntime maxRequestLength="2097151" />
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
  </system.web>
  <system.webServer>
    <httpProtocol>
      <customHeaders>
        <!--<add name="Access-Control-Allow-Origin" value="*" />
        <add name="Access-Control-Allow-Headers" value="Content-Type, Accept" />
        <add name="Access-Control-Allow-Methods" value="GET, POST, PUT, DELETE" />
        <add name="Access-Control-Max-Age" value="1728000" />-->
      </customHeaders>
    </httpProtocol>
    <modules runAllManagedModulesForAllRequests="false" />
    <staticContent>
      <mimeMap fileExtension=".apk" mimeType="application/vnd.android.package-archive" />
      <mimeMap fileExtension=".svc" mimeType="application/octet-stream" />
    </staticContent>
    <directoryBrowse enabled="false" />
  </system.webServer>
  <!--<system.diagnostics>
    <trace autoflush="true" />
    <sources>
      <source name="System.ServiceModel.MessageLogging">
        <listeners>
          <add name="ServiceModelMessageLoggingListener">
            <filter type="" />
          </add>
        </listeners>
      </source>
    </sources>
    <sharedListeners>
      <add initializeData="Logs\Messages.svclog"
           type="System.Diagnostics.XmlWriterTraceListener"
           name="ServiceModelMessageLoggingListener"
           traceOutputOptions="Timestamp">
        <filter type="" />
      </add>
    </sharedListeners>
  </system.diagnostics>-->
  <system.serviceModel>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
    <diagnostics>
      <messageLogging logEntireMessage="true"
                      logMalformedMessages="true"
                      logMessagesAtServiceLevel="true"
                      logMessagesAtTransportLevel="true"
                      maxMessagesToLog="2147483647"
                      maxSizeOfMessageToLog="2147483647" />
    </diagnostics>
    <services>
      <service behaviorConfiguration="Yokogawa.TLSVP.Api.AppServiceBehavior"
        name="Yokogawa.TLSVP.Api.WebSite.CalculateDataServices">
        <endpoint address="" behaviorConfiguration="WebHttpBindingBehavior"
          binding="webHttpBinding" bindingConfiguration="MyServiceBinding"
          contract="Yokogawa.TLSVP.Api.Contract.ICalculateDataServices" />
      </service>
      <service behaviorConfiguration="Yokogawa.TLSVP.Api.AppServiceBehavior"
        name="Yokogawa.TLSVP.Api.WebSite.EarthquakeAffectedAreaServices">
        <endpoint address="" behaviorConfiguration="WebHttpBindingBehavior"
          binding="webHttpBinding" bindingConfiguration="MyServiceBinding"
          contract="Yokogawa.TLSVP.Api.Contract.IEarthquakeAffectedAreaServices" />
      </service>
      <service behaviorConfiguration="Yokogawa.TLSVP.Api.AppServiceBehavior"
        name="Yokogawa.TLSVP.Api.WebSite.GrasslandFloodDisasterServices">
        <endpoint address="" behaviorConfiguration="WebHttpBindingBehavior"
          binding="webHttpBinding" bindingConfiguration="MyServiceBinding"
          contract="Yokogawa.TLSVP.Api.Contract.IGrasslandFloodDisasterServices" />
      </service>
      <service behaviorConfiguration="Yokogawa.TLSVP.Api.AppServiceBehavior"
        name="Yokogawa.TLSVP.Api.WebSite.GrasslandFireDisasterServices">
        <endpoint address="" behaviorConfiguration="WebHttpBindingBehavior"
          binding="webHttpBinding" bindingConfiguration="MyServiceBinding"
          contract="Yokogawa.TLSVP.Api.Contract.IGrasslandFireDisasterServices" />
      </service>
    </services>
    <behaviors>
      <endpointBehaviors>
        <behavior name="WebHttpBindingBehavior">
          <webHttp />
        </behavior>
        <behavior name="webHttp">
          <webHttp helpEnabled="true" />
        </behavior>
      </endpointBehaviors>
      <serviceBehaviors>
        <behavior name="Yokogawa.TLSVP.Api.AppServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <webHttpBinding>
        <binding name="MyServiceBinding" sendTimeout="00:10:00" maxBufferSize="2147483647" maxReceivedMessageSize="2147483647" maxBufferPoolSize="2147483647">
          <readerQuotas maxDepth="32" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="4096" maxNameTableCharCount="16384" />
          <security mode="None" />
        </binding>
        <binding name="webHttpBindConfig" receiveTimeout="00:30:00" sendTimeout="00:30:00" maxReceivedMessageSize="104857600" transferMode="Streamed">
          <readerQuotas maxStringContentLength="2147483647" maxArrayLength="2147483647" />
          <security mode="None" />
        </binding>
      </webHttpBinding>
      <basicHttpBinding />
    </bindings>
    <client />
  </system.serviceModel>
 
  <entityFramework>
    <defaultConnectionFactory type="System.Data.Entity.Infrastructure.LocalDbConnectionFactory, EntityFramework">
      <parameters>
        <parameter value="mssqllocaldb" />
      </parameters>
    </defaultConnectionFactory>
    <providers>
      <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
      <provider invariantName="MySql.Data.MySqlClient" type="MySql.Data.MySqlClient.MySqlProviderServices, MySql.Data.Entity.EF6, Version=6.10.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
      <provider invariantName="System.Data.SQLite.EF6" type="System.Data.SQLite.EF6.SQLiteProviderServices, System.Data.SQLite.EF6" />
    </providers>
  </entityFramework>
  <system.data>
    <DbProviderFactories>
      <remove invariant="MySql.Data.MySqlClient" />
      <add name="MySQL Data Provider" invariant="MySql.Data.MySqlClient" description=".Net Framework Data Provider for MySQL" type="MySql.Data.MySqlClient.MySqlClientFactory, MySql.Data, Version=6.10.8.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d" />
      <remove invariant="System.Data.SQLite.EF6" />
      <add name="SQLite Data Provider (Entity Framework 6)" invariant="System.Data.SQLite.EF6" description=".NET Framework Data Provider for SQLite (Entity Framework 6)" type="System.Data.SQLite.EF6.SQLiteProviderFactory, System.Data.SQLite.EF6" />
      <remove invariant="System.Data.SQLite" />
      <add name="SQLite Data Provider" invariant="System.Data.SQLite" description=".NET Framework Data Provider for SQLite" type="System.Data.SQLite.SQLiteFactory, System.Data.SQLite" />
    </DbProviderFactories>
  </system.data>
</configuration>