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(); }