Beispiel #1
0
 /// <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>());
 }
Beispiel #4
0
 public void AddRegistrations(AutoRegistrationList registrationList)
 {
     registrationList
         .Add(MvcRegistration.RegisterFilter<IActionFilter>())
         .Add(MvcRegistration.RegisterFilter<IResultFilter>())
         .Add(MvcRegistration.RegisterFilter<IAuthorizationFilter>())
         .Add(MvcRegistration.RegisterFilter<IExceptionFilter>());
 }
Beispiel #5
0
        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);
        }
Beispiel #6
0
        /// <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);
        }
Beispiel #7
0
 /// <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>());
 }
Beispiel #10
0
        /// <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);
        }
Beispiel #11
0
 /// <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>());
 }
Beispiel #13
0
 public virtual void AddRegistrations(AutoRegistrationList registrationList)
 {
     registrationList.Add(Registration.Simple <AreaRegistration>());
 }
		public virtual void AddRegistrations(AutoRegistrationList registrationList) {
			registrationList.Add(Registration.Simple<ModelValidatorProvider>());
		}
Beispiel #15
0
 public void AddRegistrations(AutoRegistrationList registrationList)
 {
     registrationList.Add(Registration.Simple <IInferredActionRegistry>());
 }
Beispiel #16
0
 /// <summary>
 /// Defines auto-registration for <see cref="IHttpModuleRegistry"/> types.
 /// </summary>
 /// <param name="registrationList"></param>
 public void AddRegistrations(AutoRegistrationList registrationList)
 {
     registrationList.Add(Registration.Simple<IHttpModuleRegistry>());
 }
Beispiel #17
0
 /// <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());
 }
Beispiel #18
0
 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>());
 }
Beispiel #19
0
 /// <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());
 }
Beispiel #20
0
 /// <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>());
 }
Beispiel #25
0
 /// <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>());
        }
Beispiel #27
0
 /// <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));
 }
Beispiel #30
0
 /// <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>());
 }
Beispiel #32
0
 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>());
 }
Beispiel #35
0
 public void AddRegistrations(AutoRegistrationList registrationList)
 {
     registrationList.Add(Registration.Custom<ServiceRegistration>(
         (t, serviceType) => t.IsContentController(),
         (serviceLocator, type) => contentTypesToRegister.Add(type)));
 }
Beispiel #36
0
 public virtual void AddRegistrations(AutoRegistrationList registrationList)
 {
     registrationList
     .Add(Registration.Simple <IDiagnostic>())
     .Add(Registration.Simple <IIndexViewModelBuilder>());
 }
Beispiel #37
0
 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>());
 }
Beispiel #39
0
 public void AddRegistrations(AutoRegistrationList registrationList)
 {
     registrationList.Add(Registration.Simple<IMenuSystemConfigurer>());
 }
 /// <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());
 }
Beispiel #41
0
		public virtual void AddRegistrations(AutoRegistrationList registrationList) {
			registrationList.Add(Registration.Simple<AreaRegistration>());
		}