コード例 #1
0
        protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler)
        {
            assembler.NewService()
            .WithServiceID(SPECIFIC_SERVICE_ID)
            .SetActivateWithApplication(false)
            .OfTypes(typeof(TestService))
            .WithMixins(typeof(TestServiceMixin));
            assembler.NewService()
            .WithServiceID(ACTIVE_SERVICE_ID)
            .SetActivateWithApplication(true)
            .OfTypes(typeof(TestService))
            .WithMixins(typeof(TestServiceMixin));
            assembler.NewService()
            .WithServiceID(PASSIVE_SERVICE_ID)
            .SetActivateWithApplication(false)
            .OfTypes(typeof(TestService))
            .WithMixins(typeof(TestServiceMixin));

            assembler.NewPlainComposite()
            .OfTypes(typeof(TestComposite))
            .WithMixins(typeof(TestCompositeMixin));
        }
コード例 #2
0
 protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler)
 {
     assembler.NewPlainComposite()
     .OfTypes(typeof(TestComposite));
 }