继CCS之后,重头打造了一套类似的系统——openlab,一套社区系统(此版本仅包含论坛程序)
源码在CodePlex上: http://www.codeplex.com/openlab
官方站点:http://www.ol.org.cn
发布了第一个Release,一年多了,所谓慢工出细活,希望能让大家满意!
关于Openlab架构方面的文章,会逐渐在博客中和大家分享,谢谢支持!
打印 | 张贴于 2007-08-20 21:46:00 | Tag:暂无标签
随笔 - 81, 评论 - 1563, 引用 - 157 |
||
|
继CCS之后,重头打造了一套类似的系统——openlab,一套社区系统(此版本仅包含论坛程序) 源码在CodePlex上: http://www.codeplex.com/openlab 官方站点:http://www.ol.org.cn 发布了第一个Release,一年多了,所谓慢工出细活,希望能让大家满意!
关于Openlab架构方面的文章,会逐渐在博客中和大家分享,谢谢支持! 打印 | 张贴于 2007-08-20 21:46:00 | Tag:暂无标签 博客主人设置本博客不允许匿名用户发表言论,请登录后再试
|
||
|
Powered by: Joycode.MVC引擎 0.5.2.0 Copyright © 宝玉的blog |
||
留言反馈
宝玉你好:
我是个.net新手,最近看了openlab(openlab_V2.0_Beta)的源码。
通过分析源码,看出论坛的核心数据提供者类ForumsDataProvider都是以单例模式来提供数据层服务的,比如调用 ForumsDataProvider.Instance()返回一个实现了ForumsDataProvider类中抽象方法的 SqlForumsDataProvider实例,且将该实例放在Cache里。
现在我的问题是:我在SqlForumsDataProvider类中并没有看到实现同步的代码,这样的话如果论坛进行多线程调用该实例中操作数据库方法,那么它是如何解决并发问题呢?
可能我还没有真正看懂代码,这个问题困扰我很长时间,希望得到你的帮助。谢谢了!
宝玉你好:
我是个.net新手,最近看了openlab(openlab_V2.0_Beta)的源码。
通过分析源码,看出论坛的核心数据提供者类ForumsDataProvider都是以单例模式来提供数据层服务的,比如调用 ForumsDataProvider.Instance()返回一个实现了ForumsDataProvider类中抽象方法的 SqlForumsDataProvider实例,且将该实例放在Cache里。
现在我的问题是:我在SqlForumsDataProvider类中并没有看到实现同步的代码,这样的话如果论坛进行多线程调用该实例中操作数据库方法,那么它是如何解决并发问题呢?
可能我还没有真正看懂代码,这个问题困扰我很长时间,希望得到你的帮助。谢谢了!
宝玉你好:
我是个.net新手,最近看了openlab(openlab_V2.0_Beta)的源码。
通过分析源码,看出论坛的核心数据提供者类ForumsDataProvider都是以单例模式来提供数据层服务的,比如调用 ForumsDataProvider.Instance()返回一个实现了ForumsDataProvider类中抽象方法的 SqlForumsDataProvider实例,且将该实例放在Cache里。
现在我的问题是:我在SqlForumsDataProvider类中并没有看到实现同步的代码,这样的话如果论坛进行多线程调用该实例中操作数据库方法,那么它是如何解决并发问题呢?
可能我还没有真正看懂代码,这个问题困扰我很长时间,希望得到你的帮助。谢谢了!
宝玉你好:
我是个.net新手,最近看了openlab(openlab_V2.0_Beta)的源码。
通过分析源码,看出论坛的核心数据提供者类ForumsDataProvider都是以单例模式来提供数据层服务的,比如调用 ForumsDataProvider.Instance()返回一个实现了ForumsDataProvider类中抽象方法的 SqlForumsDataProvider实例,且将该实例放在Cache里。
现在我的问题是:我在SqlForumsDataProvider类中并没有看到实现同步的代码,这样的话如果论坛进行多线程调用该实例中操作数据库方法,那么它是如何解决并发问题呢?
可能我还没有真正看懂代码,这个问题困扰我很长时间,希望得到你的帮助。谢谢了!
宝玉你好:
我是个.net新手,最近看了openlab(openlab_V2.0_Beta)的源码。
通过分析源码,看出论坛的核心数据提供者类ForumsDataProvider都是以单例模式来提供数据层服务的,比如调用 ForumsDataProvider.Instance()返回一个实现了ForumsDataProvider类中抽象方法的 SqlForumsDataProvider实例,且将该实例放在Cache里。
现在我的问题是:我在SqlForumsDataProvider类中并没有看到实现同步的代码,这样的话如果论坛进行多线程调用该实例中操作数据库方法,那么它是如何解决并发问题呢?
可能我还没有真正看懂代码,这个问题困扰我很长时间,希望得到你的帮助。谢谢了!
宝玉你好:
我是个.net新手,最近看了openlab(openlab_V2.0_Beta)的源码。
通过分析源码,看出论坛的核心数据提供者类ForumsDataProvider都是以单例模式来提供数据层服务的,比如调用 ForumsDataProvider.Instance()返回一个实现了ForumsDataProvider类中抽象方法的 SqlForumsDataProvider实例,且将该实例放在Cache里。
现在我的问题是:我在SqlForumsDataProvider类中并没有看到实现同步的代码,这样的话如果论坛进行多线程调用该实例中操作数据库方法,那么它是如何解决并发问题呢?
可能我还没有真正看懂代码,这个问题困扰我很长时间,希望得到你的帮助。谢谢了!
宝玉你好:
我是个.net新手,最近看了openlab(openlab_V2.0_Beta)的源码。
通过分析源码,看出论坛的核心数据提供者类ForumsDataProvider都是以单例模式来提供数据层服务的,比如调用 ForumsDataProvider.Instance()返回一个实现了ForumsDataProvider类中抽象方法的 SqlForumsDataProvider实例,且将该实例放在Cache里。
现在我的问题是:我在SqlForumsDataProvider类中并没有看到实现同步的代码,这样的话如果论坛进行多线程调用该实例中操作数据库方法,那么它是如何解决并发问题呢?
可能我还没有真正看懂代码,这个问题困扰我很长时间,希望得到你的帮助。谢谢了!
宝玉你好:
我是个.net新手,最近看了openlab(openlab_V2.0_Beta)的源码。
通过分析源码,看出论坛的核心数据提供者类ForumsDataProvider都是以单例模式来提供数据层服务的,比如调用 ForumsDataProvider.Instance()返回一个实现了ForumsDataProvider类中抽象方法的 SqlForumsDataProvider实例,且将该实例放在Cache里。
现在我的问题是:我在SqlForumsDataProvider类中并没有看到实现同步的代码,这样的话如果论坛进行多线程调用该实例中操作数据库方法,那么它是如何解决并发问题呢?
可能我还没有真正看懂代码,这个问题困扰我很长时间,希望得到你的帮助。谢谢了!
能帮我调试通过吗? 谢谢。
Server Error in '/forum' Application.
Required permissions cannot be acquired.
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Security.Policy.PolicyException: Required permissions cannot be acquired.
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.
Stack Trace:
[PolicyException: Required permissions cannot be acquired.]
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Boolean checkExecutionPermission) +2736869
System.Security.SecurityManager.ResolvePolicy(Evidence evidence, PermissionSet reqdPset, PermissionSet optPset, PermissionSet denyPset, PermissionSet& denied, Int32& securitySpecialFlags, Boolean checkExecutionPermission) +57
[FileLoadException: Could not load file or assembly 'Openlab.Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Reflection.Assembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, Assembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection) +0
System.Reflection.Assembly.InternalLoad(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +211
System.Reflection.Assembly.InternalLoad(String assemblyString, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection) +141
System.Reflection.Assembly.Load(String assemblyString) +25
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +32
[ConfigurationErrorsException: Could not load file or assembly 'Openlab.Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Configuration.CompilationSection.LoadAssemblyHelper(String assemblyName, Boolean starDirective) +596
System.Web.Configuration.CompilationSection.LoadAllAssembliesFromAppDomainBinDirectory() +3487289
System.Web.Configuration.CompilationSection.LoadAssembly(AssemblyInfo ai) +46
System.Web.Compilation.BuildManager.GetReferencedAssemblies(CompilationSection compConfig) +177
System.Web.Compilation.BuildProvidersCompiler..ctor(VirtualPath configPath, Boolean supportLocalization, String outputAssemblyName) +180
System.Web.Compilation.ApplicationBuildProvider.GetGlobalAsaxBuildResult(Boolean isPrecompiledApp) +3454869
System.Web.Compilation.BuildManager.CompileGlobalAsax() +51
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +462
[HttpException (0x80004005): Could not load file or assembly 'Openlab.Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.Compilation.BuildManager.ReportTopLevelCompilationException() +57
System.Web.Compilation.BuildManager.EnsureTopLevelFilesCompiled() +612
System.Web.Hosting.HostingEnvironment.Initialize(ApplicationManager appManager, IApplicationHost appHost, IConfigMapPathFactory configMapPathFactory, HostingEnvironmentParameters hostingParameters) +456
[HttpException (0x80004005): Could not load file or assembly 'Openlab.Utils, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' or one of its dependencies. Failed to grant minimum permission requests. (Exception from HRESULT: 0x80131417)]
System.Web.HttpRuntime.FirstRequestInit(HttpContext context) +3434991
System.Web.HttpRuntime.EnsureFirstRequestInit(HttpContext context) +88
System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr) +252
doc/install.txt
修改介绍了:P
@bestcomy
不是大量,而是合理的运用了缓存,并且不过于依赖缓存:)
大量使用了缓存么?