PageRenderTime 46ms CodeModel.GetById 22ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/BlogEngine.NET/Global.asax

#
ASP.NET | 15 lines | 13 code | 2 blank | 0 comment | 0 complexity | ec434e284cb3b0ed775ef3fb5c9c77f2 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. <%@ Application Language="C#" %>
  2. <%@ Import Namespace="BlogEngine.NET.App_Start" %>
  3. <script RunAt="server">
  4. void Application_BeginRequest(object sender, EventArgs e)
  5. {
  6. var app = (HttpApplication)sender;
  7. BlogEngineConfig.Initialize(app.Context);
  8. }
  9. void Application_PreRequestHandlerExecute(object sender, EventArgs e)
  10. {
  11. BlogEngineConfig.SetCulture(sender, e);
  12. }
  13. </script>