예제 #1
0
        protected override void Install(IWindsorContainer container, IConfigurationStore store, FromTypesDescriptor allLoadedTypes)
        {
            container.Register(
                allLoadedTypes
                .BasedOn(typeof(IServiceAspect <>))
                .WithService
                .FromInterface()
                .Configure(ConfigureAspect),

                allLoadedTypes
                .BasedOn <IServiceAspectApplier>()
                .WithService
                .FromInterface(),

                Component
                .For <IServiceAspectApplier>()
                .ImplementedBy <CompositeServiceAspectApplier>()
                .IsDefault(),

                Component
                .For <IModelInterceptorsSelector>()
                .ImplementedBy <DefaultModelInterceptorsSelector>()
                );

            IModelInterceptorsSelector modelInterceptorsSelector = container.Resolve <IModelInterceptorsSelector>();

            container.Kernel.ProxyFactory.AddInterceptorSelector(modelInterceptorsSelector);
        }
예제 #2
0
 public void AddInterceptorSelector(IModelInterceptorsSelector selector)
 {
     if (selectors == null)
     {
         selectors = new List<IModelInterceptorsSelector>();
     }
     selectors.Add(selector);
 }
예제 #3
0
 public void AddInterceptorSelector(IModelInterceptorsSelector selector)
 {
     if (selectors == null)
     {
         selectors = new List <IModelInterceptorsSelector>();
     }
     selectors.Add(selector);
 }
		public void AddInterceptorSelector(IModelInterceptorsSelector selector)
		{
		}
 public void AddInterceptorSelector(IModelInterceptorsSelector selector)
 {
 }
예제 #6
0
 public void AddInterceptorSelector(IModelInterceptorsSelector selector)
 {
     throw new NotImplementedException();
 }