当前位置:编程学习 > C#/ASP.NET >>

Websharp使用说明(6)

Websharp应用系统的配置
1、 缓存的配置
Websharp使用了微软的Cached Application Block来缓存数据,因此,下面的缓存信息必须在应用程序中添加。关于Cached Application Block,可以参见微软的相关文档。
<configuration>
<configSections>
<section name="CacheManagerSettings" type="Microsoft.ApplicationBlocks.Cache.CacheConfigurationHandler,Microsoft.ApplicationBlocks.Cache" />
<section name="WebsharpExpirationPolicy" type="Websharp.Service.WebsharpCofigurationHandler,Websharp" />
</configSections>
<CacheManagerSettings>
<!-- DATA PROTECTION SETTINGS
Use DataProtectionInfo to set the assembly and class which implement
the dataprotection interfaces for the cache.
-->
<DataProtectionInfo AssemblyName="Microsoft.ApplicationBlocks.Cache"
ClassName="Microsoft.ApplicationBlocks.Cache.DataProtection.DefaultDataProtection"
ValidationKey="Oci44OQ9C3xAdQ3/BMHpksPfzeTezLkXen/ahQ8T7nVk/KMgAFnssQJr00KUNhRso+MpLVwAinGep6i14X9M+A=="
Validation="SHA1"/>

<!-- STORAGE SETTINGS
Use StorageInfo to set the assembly and class which implement
the storage interfaces for the cache.

Modes: InProc, OutProc
-->
补充:asp.net教程,基础入门 
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,