public static void AddPagePreprocessor(string pageCode, PagePreprocessorHandler method) { if (!Values.PagePreProcessors.ContainsKey(pageCode)) { Values.PagePreProcessors.Add(pageCode, new List <PagePreprocessorHandler>()); } Values.PagePreProcessors[pageCode].Add(method); }
public static void AddPagePreprocessor(string pageCode, PagePreprocessorHandler method) { AdminHandler admin = Instance; if (!admin.pagePreProcessors.ContainsKey(pageCode)) { admin.pagePreProcessors.Add(pageCode, new List <PagePreprocessorHandler>()); } admin.pagePreProcessors[pageCode].Add(method); }
public static void AddPagePreprocessor(string pageCode, PagePreprocessorHandler method) { if (!Values.PagePreProcessors.ContainsKey(pageCode)) Values.PagePreProcessors.Add(pageCode, new List<PagePreprocessorHandler>()); Values.PagePreProcessors[pageCode].Add(method); }
public static void AddPagePreprocessor(string pageCode, PagePreprocessorHandler method) { AdminHandler admin = Instance; if (!admin.pagePreProcessors.ContainsKey(pageCode)) admin.pagePreProcessors.Add(pageCode, new List<PagePreprocessorHandler>()); admin.pagePreProcessors[pageCode].Add(method); }