Ejemplo n.º 1
0
        protected virtual void Resolve(Castle.Windsor.IWindsorContainer windsor)
        {
            //优先注册测试桩
            windsor.Register(Component.For<IWorkflowParser>().ImplementedBy<Stub.WorkflowParser>());
            //人员库桩
            windsor.Register(Component.For<IUserHelper>().ImplementedBy<Stub.UserHelper>());
            //事件桩
            windsor.RegisterComponent(typeof(Stub.EventBus));

            //常规注册
            windsor.RegisterRepositories(Assembly.Load("Taobao.Workflow.Activities.Repositories"));
            windsor.RegisterServices(Assembly.Load("Taobao.Workflow.Activities"));
            windsor.RegisterComponent(Assembly.Load("Taobao.Workflow.Activities.Application"));
            windsor.RegisterComponent(Assembly.Load("Taobao.Workflow.Activities"));
            //应用调度器
            windsor.RegisterFromInterface(typeof(Taobao.Workflow.Activities.Hosting.Scheduler));
            //子流程创建调度辅助默认实现
            windsor.RegisterFromInterface(typeof(Taobao.Workflow.Activities.Hosting.SubProcessCreateWaitingResumption.DefaultSubProcessHelper));
            //升级规则调度辅助默认实现
            windsor.RegisterFromInterface(typeof(Taobao.Workflow.Activities.Hosting.HumanEscalationWaitingResumption.DefaultHumanEscalationHelper));
            //DLM zookeeper
            //windsor.ZookeeperDLM();
            //DLM mutex
            //windsor.RegisterComponent(typeof(CodeSharp.Core.DLM.MutexManager));
            //设计器转换器注册
            windsor.RegisterComponent(Assembly.Load("Taobao.Workflow.Activities.Converters"));
        }
Ejemplo n.º 2
0
 protected virtual void Resolve(Castle.Windsor.IWindsorContainer windsor)
 {
     //常规注册
     windsor.RegisterRepositories(Assembly.Load("Properties.Repositories"));
     windsor.RegisterServices(Assembly.Load("Properties.Model"));
     windsor.RegisterComponent(Assembly.Load("Properties.Model"));
 }
Ejemplo n.º 3
0
        protected override void Resolve(Castle.Windsor.IWindsorContainer windsor)
        {
            //优先注册测试桩
            windsor.Register(Component.For<IWorkflowParser>().ImplementedBy<Application.WorkflowParser>());
            windsor.Register(Component.For<IUserHelper>().ImplementedBy<Stub.UserHelper>());
            windsor.Register(Component.For<ITFlowEngine>().ImplementedBy<TFlowEngine>());

            windsor.RegisterRepositories(Assembly.Load("Taobao.Workflow.Activities.Repositories"));
            windsor.RegisterServices(Assembly.Load("Taobao.Workflow.Activities"));
            windsor.RegisterComponent(Assembly.Load("Taobao.Workflow.Activities.Application"));
            windsor.RegisterComponent(Assembly.Load("Taobao.Workflow.Activities"));
            windsor.RegisterComponent(Assembly.Load("Taobao.Workflow.Activities.Client"));
            //应用调度器
            windsor.RegisterFromInterface(typeof(Taobao.Workflow.Activities.Application.Scheduler));
        }