public override void AddCustomConfiguration(INailsConfigurator configurator) { configurator.IoC .Lemming <SpringVirtualMethodsProxyFactory>() .Lemming <DefaultAdvisorAutoProxyCreator>( m => m.Reference <DefaultAopProxyFactory>(x => x.AopProxyFactory)); }
protected override void ConfigureNails(INailsConfigurator nails) { nails.IoC.Container <NailsFramework.IoC.Spring>() .Lemming <Service>() .Lemming <ServiceDependency>() .Initialize(); }
protected override void ConfigureNails(INailsConfigurator nails) { nails.InspectAssemblyOf<Domain.Client>() .InspectAssemblyOf<ClientsController>() .IoC.Container<Unity>() .Persistence.DataMapper<Memory>() .Logging.Logger<Log4net>(); }
protected override void ConfigureNails(INailsConfigurator nails) { nails.InspectAssemblyOf <Domain.Client>() .InspectAssemblyOf <ClientsController>() .IoC.Container <Unity>() .Persistence.DataMapper <Memory>() .Logging.Logger <Log4net>(); }
protected override void ConfigureNails(INailsConfigurator nails) { nails.InspectAssemblyOf <Domain.Client>() .InspectAssemblyOf <HomeController>() .InspectAssemblyOf <AdapterManager>() .IoC.Container <Unity>() .Persistence.DataMapper <EntityFramework>(x => x.Configure <NSAContext>()) .Logging.Logger <Log4net>() .Initialize(); }
protected override void ConfigureNails(INailsConfigurator nails) { nails.InspectAssemblyOf<Domain.Client>() .InspectAssemblyOf<HomeController>() .InspectAssemblyOf<AdapterManager>() .IoC.Container<Unity>() .Persistence.DataMapper<EntityFramework>(x => x.Configure<NSAContext>()) .Logging.Logger<Log4net>() .Initialize(); }
protected override void ConfigureNails(INailsConfigurator nails) { nails.InspectAssemblyOf<SystemDate>() .InspectAssemblyOf<Player>() .InspectAssemblyOf<HomeController>() .IoC.Container<Unity>() .Persistence.DataMapper<EntityFramework>(x => x.Configure<EfContext>()) .Logging.Logger<Log4net>() .Initialize(); }
public override void AddCustomConfiguration(INailsConfigurator configurator) { base.AddCustomConfiguration(configurator); configurator.UnitOfWork.ConnectionBoundUnitOfWork(false); if (ConfigureContext) { configurator .IoC.Lemming <WebExecutionContext>() .Lemming <WebSessionContext>(); } }
protected override void ConfigureNails(INailsConfigurator nails) { nails.IoC.Container <NailsFramework.IoC.Spring>() .Persistence.DataMapper <NailsFramework.Persistence.NHibernate>( x => x.Configure(c => MappingConfigurator.Configure(c))) .UserInterface.Platform <Mvc>() .Logging.Logger <Log4net>() .InspectAssembly(@"bin\Encuentrame.Model.dll") .InspectAssembly(@"bin\Encuentrame.Support.Mappings.dll") .InspectAssembly(@"bin\Encuentrame.Model.Mappings.dll") .InspectAssembly(@"bin\Encuentrame.Security.dll") .InspectAssembly(@"bin\Encuentrame.Web.dll") .InspectAssembly(@"bin\Encuentrame.Support.Email.dll") .InspectAssembly(@"bin\Encuentrame.Support.ExpoNotification.dll") .Aspects .ApplyBehavior <LogBehavior>().ToInheritorsOf(typeof(ControllerBase)) .ApplyBehavior <AuditBehavior>().ToMethodsWithAttribute <AuditAttribute>() .IoC.Lemming <DomainAuthenticationProvider>() .IoC.Lemming <AuthenticationDataProvider>() .IoC.Lemming <TranslationService>(); }
public override void AddCustomConfiguration(INailsConfigurator configurator) { }
public virtual void AddCustomConfiguration(INailsConfigurator configurator) { }
static void ConfigureTestDelegate(INailsConfigurator nails) { configureTestDelegateCalled = true; nails.IoC.Container <NailsFramework.IoC.Spring>() .Initialize(); }
protected abstract void ConfigureNails(INailsConfigurator nails);
public override void AddCustomConfiguration(INailsConfigurator configurator) { base.AddCustomConfiguration(configurator); configurator.IoC.InspectAssemblyOf <Mvc>(); }