📄 csproviderhttpmodule.cs
字号:
////------------------------------------------------------------------------------
//// <copyright company="Telligent Systems">
//// Copyright (c) Telligent Systems Corporation. All rights reserved.
//// </copyright>
////------------------------------------------------------------------------------
//
//using System;
//using System.Web;
//using CommunityServer.Configuration;
//
//namespace CommunityServer.Components
//{
// /// <summary>
// /// Summary description for CSProviderHttpModule.
// /// </summary>
// public class CSProviderHttpModule : IHttpModule
// {
// private static readonly string key = "AppName.Context.Key";
//
// public static string CurrentApplicationName
// {
// get
// {
// HttpContext cntx = HttpContext.Current;
// if(cntx != null)
// return cntx.Items[key] as string;
//
// return null;
// }
// }
//
// public CSProviderHttpModule()
// {
// //
// // TODO: Add constructor logic here
// //
// }
// #region IHttpModule Members
//
// public void Init(HttpApplication context)
// {
// // Don't run Init if we are attempting to run installer code
// if (context.Context.Request.Path.IndexOf("/installer/") > 0)
// return;
//
// context.BeginRequest +=new EventHandler(OnStart);
// }
//
// public void Dispose()
// {
// // TODO: Add CSProviderHttpModule.Dispose implementation
// }
//
// #endregion
//
// private void OnStart(object sender, EventArgs e)
// {
// string appName = CSConfiguration.GetConfig().ApplicationOverride;
// SiteSettings ss = null;
// HttpContext cntx = ((HttpApplication)sender).Context;
//
// // If the installer is making the request terminate early
// if (CSConfiguration.GetConfig().AppLocation.CurrentApplicationType == ApplicationType.Installer) {
// return;
// }
//
//
// if(appName != null)
// {
// ss = SiteSettingsManager.GetSiteSettings(appName,cntx);
// }
// else
// {
// ss = SiteSettingsManager.GetSiteSettings(cntx);
// }
//
// if(ss != null)
// {
// cntx.Items.Add(key,ss.ApplicationName);
// }
//
// }
// }
//}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -