#PreApplicationStartMethodAttribute

PreApplicationStartMethodAttribute的使用

先预备一个类,用于Start时调用publicstaticclassMyPreApplicationStart{publicstaticvoidRegisterGlobalFilters(GlobalFilterCollectionfilters){if(filters!=null)filters.Add(newHan...