public void Register(Object sender, RegisterEventArgs e)
        {
            //e.Container
            //    .RegisterType<IWorkFlowTaskService, WorkFlowTaskService>(new ExternallyControlledLifetimeManager());

            //e.Container.Configure<Interception>().SetInterceptorFor<APIKeyUtility>(new VirtualMethodInterceptor());
        }
Пример #2
0
        public void OnRegiseter(RegisterEventArgs e)
        {
            RegisterEventHandler handler = Regiseters;

            if (handler != null)
            {
                handler(this, e);
            }
        }
        public void Register(Object sender, RegisterEventArgs e)
        {
            e.Container
            .RegisterType <IK2ServiceProvider, K2ServiceProvider>(new ExternallyControlledLifetimeManager())
            .RegisterType <IEmployeeServiceProvider, EmployeeServiceProvider>(new ExternallyControlledLifetimeManager())
            ;

            e.Container.Configure <Interception>()
            .SetInterceptorFor <IK2ServiceProvider>(new InterfaceInterceptor())
            ;
        }
        public void Register(Object sender, RegisterEventArgs e)
        {
            e.Container
            .RegisterType <IWorkFlowTaskService, WorkFlowTaskService>(new ExternallyControlledLifetimeManager())
            .RegisterType <IWorkFlowProcessService, WorkFlowProcessService>(new ExternallyControlledLifetimeManager());

            e.Container.Configure <Interception>()
            .SetInterceptorFor <IWorkFlowTaskService>(new InterfaceInterceptor())
            .SetInterceptorFor <IWorkFlowProcessService>(new InterfaceInterceptor())
            ;
        }
Пример #5
0
        public void Register(Object sender, RegisterEventArgs e)
        {
            e.Container
            .RegisterType <ITaskDomain, TaskDomain>(new ExternallyControlledLifetimeManager())
            .RegisterType <IProcessInfoDomain, ProcessInfoDomain>(new ExternallyControlledLifetimeManager())
            .RegisterType <IK2CommentDomain, K2CommentDomain>(new ExternallyControlledLifetimeManager())
            .RegisterType <IK2UserDomain, K2UserDomain>(new ExternallyControlledLifetimeManager())
            .RegisterType <IK2CityDomain, K2CityDomain>(new ExternallyControlledLifetimeManager())
            .RegisterType <IK2ParticipateDomain, K2ParticipateDomain>(new ExternallyControlledLifetimeManager())
            ;


            e.Container.Configure <Interception>()
            .SetInterceptorFor <IK2UserDomain>(new InterfaceInterceptor())
            .SetInterceptorFor <IK2CommentDomain>(new InterfaceInterceptor())
            ;
        }
        public void Register(Object sender, RegisterEventArgs e)
        {
            e.Container
            .RegisterType <IProcessInfoRepostories, ProcessInfoRepostories>(new ExternallyControlledLifetimeManager())
            .RegisterType <IWorklistRepostories, WorklistRepostories>(new ExternallyControlledLifetimeManager())
            .RegisterType <IPorcessInstRepostories, PorcessInstRepostories>(new ExternallyControlledLifetimeManager())
            .RegisterType <IK2CommentRepostories, K2CommentRepostories>(new ExternallyControlledLifetimeManager())
            .RegisterType <IK2UserRepostories, K2UserRepostories>(new ExternallyControlledLifetimeManager())
            .RegisterType <IK2CityRepostories, K2CityRepostories>(new ExternallyControlledLifetimeManager())
            .RegisterType <IK2ParticipateRepostories, K2ParticipateRepostories>(new ExternallyControlledLifetimeManager())
            .RegisterType <IWorklistHeaderRepositories, WorklistHeaderRepositories>(new ExternallyControlledLifetimeManager())
            .RegisterType <IActInstDestRepostories, ActInstDestRepostories>(new ExternallyControlledLifetimeManager())
            ;

            e.Container.Configure <Interception>()
            .SetInterceptorFor <IK2CommentRepostories>(new InterfaceInterceptor())
            .SetInterceptorFor <IProcessInfoRepostories>(new InterfaceInterceptor())
            .SetInterceptorFor <IWorklistRepostories>(new InterfaceInterceptor())
            ;
        }
Пример #7
0
        public void RegisterAll()
        {
            RegisterEventArgs e = new RegisterEventArgs(_container);

            OnRegiseter(e);
        }