internal void RegisterMvc(HttpMvc httpMvc) { if (_mvcs.Contains(httpMvc)) { throw new MvcAlreadyExistsException(httpMvc.GetType().FullName); } _mvcs.Add(httpMvc); }
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); } }
public static void RegisterMvc(this IPlugin plugin, HttpMvc mvc) { HttpEngine.RegisterMvc(plugin, mvc); }