Beispiel #1
0
        // This method gets called by the runtime. Use this method to add services to the container.
        public void ConfigureServices(IServiceCollection services)
        {
            services.AddMvc().SetCompatibilityVersion(CompatibilityVersion.Version_2_2);

            // In production, the React files will be served from this directory
            services.AddSpaStaticFiles(configuration =>
            {
                configuration.RootPath = "ClientApp/build";
            });


            // MediatR will scan all my aspnet core project for implementation of the required interface.
            services.AddMediatR(typeof(Startup));



            PersistenceModules.Register(services);
            ServiceModules.Register(services);
        }
Beispiel #2
0
 private static void MapperModules(Container container)
 {
     AplicationServiceModules.Register(container);
     ServiceModules.Register(container);
     RepositoryModules.Register(container);
 }