首页 > 移动平台 > 详细

why app_start start

时间:2014-02-27 09:14:58      阅读:501      评论:0      收藏:0      [点我收藏+]

 

 

 

Add following code for your class:

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

 

 

ex:

 

bubuko.com,布布扣
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");
        }

    }
}
bubuko.com,布布扣

why app_start start,布布扣,bubuko.com

why app_start start

原文:http://www.cnblogs.com/zyip/p/3568965.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!