deerchao的blog

Be and aware who you are.

2007年4月29日

CS2007 启动过程 (一)

web.config:
    <httpModules>
      <add name="CommunityServer" type="CommunityServer.CSHttpModule, CommunityServer.Components" />
    </httpModules>

CSHttpModule.cs:
    register event handlers
    
    CSHttpModule.Application_BeginRequest:
        make url valid (modify <,>,",\ to %3c, %3e, %22, %27), and redirect
        get CSConfiguration
        
        CSConfiguration.GetConfig:
        try get from cache
        if not get:
            load XmlDocument from communityserver.config
            if communityserver_override.config exists merge first.
                new CSConfiguration(XmlDocument):
                    LoadValuesFromConfigurationXml:
                        load CommunityServer\Core attributes
                        load providers: //Telligent.Components.Provider: Name, Type, Attributes, ExtensionType
                            CommonDataProvider
                            ForumDataProvider
                            WeblogDataProvider
                            GalleryDataProvider
                            ProviderHelper
                            SiteUrlsDataProvider
                            ApplicationKeyProvider
                            EmailTemplateProvider
                            EmailQueueProvider
                            CommonEmailsProvider
                            WeblogEmailsProvider
                            GalleryEmailsProvider
                            FilesEmailsProvider
                            ForumEmailsProvider
                            SearchProvider
                            FileGalleryDataProvider
                            FeedReaderDataProvider
                            RollerBlogsDataProvider
                            MemberRoleProfileProvider
                        load appLocation: //AppLocation : Get ApplicationType(forum, blog, file,...)from url
                            BlogPublic
                            Forums
                            GalleryPublic
                            Admin
                            FileGallery
                            FeedReader
                            BlogRoller
                            Installer
                        load extensionModules: //extensionModules here is a Telligent.Components.Provider, too
                            PassportAuthentication : Security
                            WindowsAuthentication : Security
                            FormsAuthentication : Security
                            CustomAuthentication : Security
                            EncryptionProvider : Encryption
                        load roleConfiguration:
                            currently not aviable from communityserver.config, so will create a default RolesConfiguration
                            this should be a custom string to replace built in role title "EveryOne", "Registered Users"...
                        load fielterLanguages: //every section has a language, user can hide sections in language that he dont want to see, this is for all languages aviable
                            ...
                        load edtiors:
                            PlainText
                            Standard
                            Enhanced
                        if no AppLocation or RolesConfiguration, create default ones
        if config.AppLocation.CurrentApplicationType == ApplicationType.Installer return
        check WWWStatus
            if not valid SEO friendly redirect with 301 result
        check SSL
        create CSContext and Save it

posted @ 2007-04-29 18:12 deerchao 阅读(167) | 评论 (0)编辑

有没有记录程序运行中所有的函数调用堆栈的工具?

比如如下代码:
public class A
{
  
public static void Main()
  {
    B();
    C();
  }

  B()
  {
     D();
  }

  C()
  {
  }

  D()
  {
  }
}
给出的结果是:
A.Main
  A.B
    A.D
  A.C

posted @ 2007-04-29 16:59 deerchao 阅读(226) | 评论 (2)编辑

<2007年4月>
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

导航

统计

公告

给网络添加价值,就是让自己增加价值.

本博客所有内容,均为原创或对互联网已有资源的再加工,希望对你有用.在声明原作者的前提下,你可以任意使用,但本人对其正确性,使用的后果等不做任何担保,也不负任何责任.

正则表达式30分钟入门教程 v2.21 2007-8-3

I Want Spec#!

与我联系

搜索

 

常用链接

留言簿(66)

我管理的小组

我的标签

随笔档案(127)

文章分类(9)

文章档案(9)

新闻档案(9)

Links

积分与排名

最新评论

评论排行榜