protected override void Resolve(Castle.Windsor.IWindsorContainer windsor) { //提前注册桩 windsor.RegisterComponent(typeof(ProcessServiceMock)); windsor.RegisterComponent(typeof(SchedulerServiceMock)); base.Resolve(windsor); }
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")); }
protected override void Resolve(Castle.Windsor.IWindsorContainer windsor) { //使用实际解析器 windsor.RegisterComponent(typeof(WorkflowParser)); base.Resolve(windsor); }
protected override void Resolve(Castle.Windsor.IWindsorContainer windsor) { windsor.RegisterComponent(typeof(TestHumanEscalationHelper)); windsor.Register(Component.For<IWorkflowParser>().ImplementedBy<WorkflowParser>()); base.Resolve(windsor); }
protected override void Resolve(Castle.Windsor.IWindsorContainer windsor) { windsor.RegisterComponent(typeof(TestHumanEscalationHelper)); base.Resolve(windsor); }
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")); }
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)); }
protected override void Resolve(Castle.Windsor.IWindsorContainer windsor) { //使用nsf人员库访问实现 windsor.RegisterComponent(typeof(DefaultMethodHelper)); base.Resolve(windsor); }