Beispiel #1
0
 internal void RegisterMvc(HttpMvc httpMvc)
 {
     if (_mvcs.Contains(httpMvc))
     {
         throw new MvcAlreadyExistsException(httpMvc.GetType().FullName);
     }
     _mvcs.Add(httpMvc);
 }
Beispiel #2
0
 public static void RegisterMvc(IPlugin plugin, HttpMvc mvc)
 {
     if (_httpEngine == null)
     {
         throw new HttpEngineNotInitializedException();
     }
     foreach (var site in _httpEngine._sites)
     {
         if (!site.HasPermission(plugin))
         {
             continue;
         }
         site.RegisterMvc(mvc);
     }
 }
Beispiel #3
0
 public static void RegisterMvc(this IPlugin plugin, HttpMvc mvc)
 {
     HttpEngine.RegisterMvc(plugin, mvc);
 }