Ejemplo n.º 1
0
        private static ModuleAssembly CreateExperimentalModule(LayerAssembly layer)
        {
            ModuleAssembly module = layer.NewModuleAssembly("ExperimentalModule");

            module
            .AddEntities()
            .VisibleIn(Visibility.Module);

            module
            .AddServices()
            .Include <CustomerRepositoryService>()
            .WithConcern <GenericTracingConcern>()
            .VisibleIn(Visibility.Layer);

            module
            .AddValues()
            .Include <AddressValue>();

            module
            .AddTransients()
            .Include <CustomerTransient>()
            .Include <ContactTransient>()
            .WithConcern <GenericTracingConcern>()
            //  .WithConcern<SayHelloConcern>()
            .WithSideEffect <SayHelloSideEffect>();

            return(module);
        }
Ejemplo n.º 2
0
        private static ModuleAssembly CreateExperimentalModule(LayerAssembly layer)
        {
            ModuleAssembly module = layer.NewModuleAssembly("ExperimentalModule");

            module
                    .AddEntities()
                    .VisibleIn(Visibility.Module);

            module
                    .AddServices()
                    .Include<CustomerRepositoryService>()
                    .WithConcern<GenericTracingConcern>()
                    .VisibleIn(Visibility.Layer);

            module
                    .AddValues()
                    .Include<AddressValue>();

            module
                    .AddTransients()
                    .Include<CustomerTransient>()
                    .Include<ContactTransient>()
                    .WithConcern<GenericTracingConcern>()
                    //  .WithConcern<SayHelloConcern>()
                    .WithSideEffect<SayHelloSideEffect>();

            return module;
        }
Ejemplo n.º 3
0
        private static ModuleAssembly CreateShapeModule(LayerAssembly layer)
        {
            ModuleAssembly module = layer.NewModuleAssembly("ShapeModule");

            module.AddTransients()
            .Include <DrawingService>();
            module
            .AddTransients()
            .Include <RectangleShape>()
            .Include <EllipseShape>()
            .Include <LineShape>()
            .Include <SplineShape>()
            //.Include<DescriptionTransient>()
            .Include <GroupShape>()
            ;

            return(module);
        }
Ejemplo n.º 4
0
        private static ModuleAssembly CreateShapeModule(LayerAssembly layer)
        {
            ModuleAssembly module = layer.NewModuleAssembly("ShapeModule");

            module.AddTransients()
                    .Include<DrawingService>();
            module
                    .AddTransients()
                    .Include<RectangleShape>()
                    .Include<EllipseShape>()
                    .Include<LineShape>()
                    .Include<SplineShape>()
                    //.Include<DescriptionTransient>()
                    .Include<GroupShape>()
                    ;

            return module;
        }