Ejemplo n.º 1
0
        protected override ICascadedInterceptor HandleServiceIntern(Ioc.Factory.IBeanContextFactory beanContextFactory, Ioc.IServiceContext beanContext, Ioc.Config.IBeanConfiguration beanConfiguration, System.Type type, System.Collections.Generic.ISet <System.Type> requestedTypes)
        {
            MergeContext mergeContext = mergeContextCache.GetAnnotation(type);

            if (mergeContext == null)
            {
                return(null);
            }
            IMethodLevelBehavior <Attribute> behavior = CreateInterceptorModeBehavior(type);

            MergeInterceptor mergeInterceptor = new MergeInterceptor();

            if (beanContext.IsRunning)
            {
                return(beanContext.RegisterWithLifecycle(mergeInterceptor) //
                       .PropertyValue("Behavior", behavior)                //
                       .IgnoreProperties("ServiceName")                    //
                       .Finish());
            }
            beanContextFactory.RegisterWithLifecycle(mergeInterceptor) //
            .PropertyValue("Behavior", behavior)                       //
            .IgnoreProperties("ServiceName");
            return(mergeInterceptor);
        }
Ejemplo n.º 2
0
 public void PostProcessTargetProviderBean(string targetProviderBeanName, Ioc.Factory.IBeanContextFactory beanContextFactory)
 {
     throw new NotImplementedException();
 }