示例#1
0
        public void RegisterServicesMapper(IServiceCollection services)
        {
            var configExpression = ServiceMapper.GetMapperConfiguration(new string[]
            {
                "Users.Services",
                "Accounts.Services",
                "AccountsStatements.Services"
            });

            services.AddSingleton(configExpression);
            services.AddScoped <IServiceMapper, ServiceMapper>();
        }