protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewService().OfTypes(typeof(SuccessDataService)) .WithMixins(typeof(SuccessDataServiceMixin)); assembler .NewService().OfTypes(typeof(FailingDataService)) .WithMixins(typeof(FailingDataServiceMixin)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewService().OfTypes(typeof(TestServiceWithUsesGiven)) .WithMixins(typeof(TestServiceMixin)).Done() .Use(USES); assembler .NewService().OfTypes(typeof(TestServiceWithNoUsesGiven)) .WithMixins(typeof(TestServiceMixinWithSpecialMethod)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewService().OfTypes(typeof(TestServiceWithTwoFilterAttributes)) .WithMixins(typeof(TestServiceMixinWithTwoFilterAttributes)).Done() .WithConcerns(typeof(TestConcern)).ApplyWith(typeof(FirstAttribute), typeof(SecondAttribute)); assembler .NewService().OfTypes(typeof(TestServiceWithFirstFilterAttribute)) .WithMixins(typeof(TestServiceMixinWithFirstFilterAttribute)).Done() .WithConcerns(typeof(TestConcern)).ApplyWith(typeof(FirstAttribute), typeof(SecondAttribute)); assembler .NewService().OfTypes(typeof(TestServiceWithSecondFilterAttribute)) .WithMixins(typeof(TestServiceMixinWithSecondFilterAttribute)).Done() .WithConcerns(typeof(TestConcern)).ApplyWith(typeof(FirstAttribute), typeof(SecondAttribute)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewService().OfTypes(typeof(ServiceComposite)); assembler .NewPlainComposite().OfTypes(typeof(ServiceUser)) .WithMixins(typeof(ServiceUserMixin)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewPlainComposite().OfTypes(typeof(CollectionWithRoles <,>)) .WithMixins(typeof(CollectionWithRolesMixin <,>), typeof(CollectionMutableQueryMixin <,>), typeof(CollectionImmutableQueryMixin <,>)); assembler .NewPlainComposite().OfTypes(typeof(ListWithRoles <,>)) .WithMixins(typeof(ListWithRolesMixin <,>), typeof(ListMutableQueryMixin <,>), typeof(ListImmutableQueryMixin <,>), typeof(CollectionImmutableQueryMixin <,>), typeof(CollectionMutableQueryMixin <,>), typeof(CollectionWithRolesMixin <,>)); assembler .NewService().OfTypes(typeof(CollectionsFactory)) .WithMixins(typeof(CollectionsFactoryMixin)); assembler .NewPlainComposite().OfTypes(typeof(Int32Object)) .WithMixins(typeof(Int32ObjectMixin), typeof(Int32ObjectIQMixin)); assembler .NewService().OfTypes(typeof(ObjectsFactory)) .WithMixins(typeof(ObjectsFactoryMixin)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler .NewService().OfTypes(typeof(ServiceComposite1)) .WithMixins(typeof(ServiceComposite1Mixin)); assembler .NewService() .SetActivateWithApplication(true) .OfTypes(typeof(ServiceComposite2)) .WithMixins(typeof(ServiceComposite2Mixin)); assembler .NewService().OfTypes(typeof(ServiceComposite3)) .WithMixins(typeof(ServiceComposite3Mixin), typeof(ServiceComposite3Lifecycle)); _isActive1 = false; _isActive2 = false; }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewService().AsFunctionAggregator <Type, TestFunction>() .WithFunctionType( FunctionAssemblerUtils.TypeBasedFunctionLookUp(0) ) .WithDefaultFunctions( Tuple.Create <Type[], Func <StructureServiceProvider, TestFunction> >(new Type[] { typeof(MyData) }, ssp => ssp.NewPlainCompositeBuilder <MyFunction>().Instantiate()) ).Done() .OfTypes(typeof(TestService)); assembler.NewPlainComposite().OfTypes(typeof(MyData)); assembler.NewPlainComposite().OfTypes(typeof(MyFunction)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewService().OfTypes(typeof(TestService1)); assembler.NewService().OfTypes(typeof(TestService2)); }
protected override void Assemble(Qi4CS.Core.Bootstrap.Assembling.Assembler assembler) { assembler.NewService().SetActivateWithApplication(true).OfTypes(typeof(TestService)); }