<configSections> <!-- For more information on Entity Framework configuration,
visit http://go.microsoft.com/fwlink/?LinkID=237468 --> <section name="entityFramework" type="System.Data.Entity.Internal.
ConfigFile.EntityFrameworkSection, EntityFramework,
Version=5.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" />
<section name="unity"
type="Microsoft.Practices.Unity.Configuration.
UnityConfigurationSection,
Microsoft.Practices.Unity.Configuration"
/>
<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,
log4net" />
<section name="cachingConfiguration"
type="Microsoft.Practices.EnterpriseLibrary.Caching.
Configuration.CacheManagerSettings, Microsoft.Practices.EnterpriseLibrary.Caching,
Version=5.0.505.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
/>
</configSections>
<connectionStrings>
<add name="DefaultConnection" providerName="System.Data.SqlClient"
connectionString="Data Source=(LocalDb)\v11.0;
Initial Catalog=aspnet-aop_cache-20131030092430;
Integrated Security=SSPI;AttachDBFilename=
|DataDirectory|\aspnet-aop_cache-20131030092430.mdf"
/>
<add name="TsingDa_NewLearningBarEntities"
connectionString="metadata=res://*/Model1.csdl|
res://*/Model1.ssdl|res://*/Model1.msl;provider=System.Data.SqlClient;provider
connection string="data source=.;initial
catalog=TsingDa_NewLearningBar;
user id=sa;password=zzl123;MultipleActiveResultSets=True;App=EntityFramework""
providerName="System.Data.EntityClient"
/>
</connectionStrings>
<!--BEGIN: Unity-->
<unity xmlns="http://schemas.microsoft.com/practices/2010/unity">
<sectionExtension type="Microsoft.Practices.Unity.InterceptionExtension.Configuration.
InterceptionConfigurationExtension,
Microsoft.Practices.
Unity.Interception.Configuration"
/>
<container>
<extension type="Interception" />
<register type="Project.Caching.ICacheProvider,
Project.Caching" mapTo="Project.Caching.
EntLibCacheProvider, Project.Caching" />
<!--对WCF的访问进行的注入与缓存和异常的拦截-->
<register type="aop_cache_Data.IClassroom_InfoRepository,
aop_cache_Data" mapTo="aop_cache_Data.
Classroom_InfoRepository, aop_cache_Data">
<interceptor type="InterfaceInterceptor"
/>
<interceptionBehavior type="Project.InterceptionBehaviors.CachingBehavior,
Project.InterceptionBehaviors" />
</register>
</container>
</unity>
<!--END: Unity-->
<!--BEGIN: Caching-->
<cachingConfiguration defaultCacheManager="ByteartRetailCacheManager">
<cacheManagers>
<add name="ByteartRetailCacheManager"
type="Microsoft.Practices.EnterpriseLibrary.Caching.CacheManager,
Microsoft.Practices.EnterpriseLibrary.Caching,
Version=5.0.505.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" expirationPollFrequencyInSeconds="600"
maximumElementsInCacheBeforeScavenging="1000"
numberToRemoveWhenScavenging="10" backingStoreName="NullBackingStore"
/>
<!--
expirationPollFrequencyInSeconds:过期时间(seconds)
maximumElementsInCacheBeforeScavenging:缓冲中的最大元素数量
numberToRemoveWhenScavenging:一次移除的数量
-->
</cacheManagers>
<backingStores>
<add type="Microsoft.Practices.EnterpriseLibrary.Caching.BackingStoreImplementations.
NullBackingStore, Microsoft.Practices.EnterpriseLibrary.Caching,
Version=5.0.505.0, Culture=neutral,
PublicKeyToken=31bf3856ad364e35" name="NullBackingStore"
/>
</backingStores>
</cachingConfiguration>
<!--END: Caching-->
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Microsoft.Practices.Unity"
publicKeyToken="31bf3856ad364e35" culture="neutral"
/>
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0"
newVersion="3.0.0.0" />
</dependentAssembly>
<dependentAssembly>
<assemblyIdentity name="Microsoft.Practices.Unity.Interception"
publicKeyToken="31bf3856ad364e35"
culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-3.0.0.0"
newVersion="3.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
<system.diagnostics>
<sources>
<source name="System.ServiceModel"
switchValue="Warning" propagateActivity="true">
<listeners>
<add name="xml" />
</listeners>
</source>
</sources>
<sharedListeners>
<add name="xml" type="System.Diagnostics.XmlWriterTraceListener"
initializeData="d:\wcf.svclog"
/>
</sharedListeners>
</system.diagnostics>
<system.serviceModel>
<behaviors>
<serviceBehaviors>
<behavior>
<!-- 为避免泄漏元数据信息,请在部署前将以下值设置为 false -->
<serviceMetadata httpGetEnabled="true"
httpsGetEnabled="true"/>
<!-- 要接收故障异常详细信息以进行调试,请将以下值设置为 true。
在部署前设置为 false 以避免泄漏异常信息 -->
<serviceDebug includeExceptionDetailInFaults="false"/>
</behavior>
</serviceBehaviors>
</behaviors>
<protocolMapping>
<add binding="basicHttpsBinding"
scheme="https" />
</protocolMapping>
<serviceHostingEnvironment aspNetCompatibilityEnabled=
"true" multipleSiteBindingsEnabled="true"
/>
</system.serviceModel> |