/// <summary> /// Provides the auto-registration for <see cref="IModelBinderProvider"/> and <see cref="ModelBinderRegistry"/> types. /// </summary> /// <param name="registrationList"></param> public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList .Add(MvcRegistration.RegisterBinder()) .Add(Registration.Simple<IModelBinderProvider>()) .Add(Registration.Simple<ModelBinderRegistry>()); }
public void Can_Add_Null_Registration_To_List() { var list = new AutoRegistrationList(); list.Add(null).Add(null); Assert.IsNotEmpty(list.ToList()); Assert.AreEqual(list.Count(), 2); }
/// <summary> /// Provides the auto-registration for <see cref="IModelBinderProvider"/> and <see cref="ModelBinderRegistry"/> types. /// </summary> /// <param name="registrationList"></param> public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList .Add(MvcRegistration.RegisterBinder()) .Add(Registration.Simple <IModelBinderProvider>()) .Add(Registration.Simple <ModelBinderRegistry>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList .Add(MvcRegistration.RegisterFilter<IActionFilter>()) .Add(MvcRegistration.RegisterFilter<IResultFilter>()) .Add(MvcRegistration.RegisterFilter<IAuthorizationFilter>()) .Add(MvcRegistration.RegisterFilter<IExceptionFilter>()); }
/// <summary> /// Setup registration for "top" level pieces of the application /// </summary> private void AutoRegistrationForContext() { var registrationList = new AutoRegistrationList(); registrationList .Add(Registration.Simple <IServiceRegistration>()) .Add(Registration.Simple <IBlade>()) .Add(Registration.Simple <IHttpModule>()); ProcessAutomaticRegistration(registrationList); }
/// <summary> /// Provides the auto-registration of MVC related components (controllers, view engines, filters, etc). /// </summary> /// <param name="registrationList"></param> public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList .Add(MvcRegistration.RegisterController()) .Add(MvcRegistration.RegisterViewEngine()) .Add(MvcRegistration.RegisterFilter<IActionFilter>()) .Add(MvcRegistration.RegisterFilter<IResultFilter>()) .Add(MvcRegistration.RegisterFilter<IAuthorizationFilter>()) .Add(MvcRegistration.RegisterFilter<IExceptionFilter>()) .Add(MvcRegistration.RegisterBinder()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple <IRendererRegistry>()); }
public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple <ValueProviderFactory>()); }
/// <summary> /// Setup registration for "top" level pieces of the application /// </summary> private void AutoRegistrationForContext() { var registrationList = new AutoRegistrationList(); registrationList .Add(Registration.Simple<IServiceRegistration>()) .Add(Registration.Simple<IBlade>()) .Add(Registration.Simple<IHttpModule>()); ProcessAutomaticRegistration(registrationList); }
/// <summary> /// Provides the auto-registration for <see cref="IFilterProvider"/> and <see cref="IFilterRegistry"/> types. /// </summary> /// <param name="registrationList"></param> public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList .Add(Registration.Simple <IFilterProvider>()) .Add(Registration.Simple <IFilterRegistry>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple <IMessageDispatcher>()); }
public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple <AreaRegistration>()); }
public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<ModelValidatorProvider>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple <IInferredActionRegistry>()); }
/// <summary> /// Defines auto-registration for <see cref="IHttpModuleRegistry"/> types. /// </summary> /// <param name="registrationList"></param> public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<IHttpModuleRegistry>()); }
/// <summary> /// Provides the auto-registration for <see cref="IViewEngine"/> types. /// </summary> /// <param name="registrationList"></param> public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(MvcRegistration.RegisterViewEngineProviders()); }
public void AddRegistrations(AutoRegistrationList registrationList) { // Tell the system that this blade provides an ILogger and // that it should auto-register anything that implements it. registrationList.Add(Registration.Simple <ILogger>()); }
/// <summary> /// Provides the auto-registration for <see cref="IController"/> types. /// </summary> /// <param name="registrationList"></param> public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(MvcRegistration.RegisterController()); }
/// <summary> /// Provides the auto-registration for <see cref="IRouteRegistrator"/> types. /// </summary> /// <param name="registrationList"></param> public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple <IRouteRegistrator>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<IRendererRegistry>()); }
public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple <ModelMetadataProvider>()); }
public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList .Add(Registration.Simple<IDiagnostic>()) .Add(Registration.Simple<IIndexViewModelBuilder>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<IMessageDispatcher>()); }
/// <summary> /// Provides the auto-registration of MVC related components (controllers, view engines, filters, etc). /// </summary> /// <param name="registrationList"></param> public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<IRouteRegistrator>()); }
/// <summary> /// Adds auto-registration to the <see cref="IInferredActionRegistry"/>. /// </summary> /// <param name="registrationList"></param> public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<IInferredActionRegistry>()); }
/// <summary> /// Provides the auto-registration for <see cref="IViewEngine"/> types. /// </summary> /// <param name="registrationList"></param> public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(MvcRegistration.RegisterViewEngine()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<ILazySetup>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add( ComponentModel.Registration.Custom<ILogReportingRepository>( RegistrationFilters.DefaultFilter, RegisterLogReportingRepositoriesThatAreNotExcluded)); }
/// <summary> /// Provides the auto-registration for <see cref="IFilterProvider"/> and <see cref="IFilterRegistry"/> types. /// </summary> /// <param name="registrationList"></param> public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList .Add(Registration.Simple<IFilterProvider>()) .Add(Registration.Simple<IFilterRegistry>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { // Tell the system to scan and auto-register all the HtmlConventionRegistry types registrationList.Add(Registration.Simple <HtmlConventionRegistry>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { // Tell the system that this blade provides an ILogger and // that it should auto-register anything that implements it. registrationList.Add(Registration.Simple<ILogger>()); }
public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<ValueProviderFactory>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(ComponentModel.Registration.Simple<IPrincipalProvider>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Custom<ServiceRegistration>( (t, serviceType) => t.IsContentController(), (serviceLocator, type) => contentTypesToRegister.Add(type))); }
public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList .Add(Registration.Simple <IDiagnostic>()) .Add(Registration.Simple <IIndexViewModelBuilder>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(ComponentModel.Registration.Simple <IPrincipalProvider>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { // Tell the system to scan and auto-register all the HtmlConventionRegistry types registrationList.Add(Registration.Simple<HtmlConventionRegistry>()); }
public void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<IMenuSystemConfigurer>()); }
public virtual void AddRegistrations(AutoRegistrationList registrationList) { registrationList.Add(Registration.Simple<AreaRegistration>()); }