Ejemplo n.º 1
0
        public void ConfigureServices(IServiceCollection services)
        {
            SwaggerConfiguration.AddSwaggerService(services);
            ContextConfiguration.AddContext(services, Configuration);
            DependecyInjection.Injections(services, Configuration);
            RabbitConfiguration.Set(services, Configuration);
            JsonWebTokenConfiguration.Set(services, Configuration);
            AddMapperService.AddMapper(services);

            var assembly = AppDomain.CurrentDomain.Load("Restful.Login.Domain");

            services.AddMediatR(assembly);

            services.AddCors();

            services.AddControllers();
        }