why app_start start

 

 

 

Add following code for your class:

[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(WeChatSchools.App_Start.MyStartPoint), "Initialize")]

 

 

ex:

 

why app_start start
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

[assembly: WebActivatorEx.PostApplicationStartMethod(typeof(WeChatSchools.App_Start.MyStartPoint), "Initialize")]

namespace WeChatSchools.App_Start
{
    public class MyStartPoint 
    {

        public static void Initialize()
        {
            Start();
        }


        public static void Start()
        {
            BLL.Helpers.EntityHelper.Log("start point");
        }

    }
}
why app_start start

why app_start start,布布扣,bubuko.com

why app_start start

上一篇:Android之旅-Intent与Intent Filter[上]


下一篇:1-14编写一个程序,打印输入中各个字符出现频度的直方图