zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    浅析七种经典排序算法
    一个可编辑与新增博客园文章的 Python 脚本
    快速排序的几种实现方式
    如何查找某个网站的(如:有道云笔记)的接口
    一键导出「有道云笔记」所有笔记
    2020年启蒙及小学识字练字APP或小程序测评榜
    2020年部编版小学二年级语文上册知识点(完整版)
    2020年部编人教版小学语文一年级下册知识点汇总
    换个角度,程序员爸爸应该关注一下
    计算机基础知识-I/O篇
  • 原文地址:https://www.cnblogs.com/deerchao/p/732621.html
Copyright © 2011-2022 走看看