|
|
|
@ -1,4 +1,5 @@ |
|
|
|
using Microsoft.OpenApi.Models; |
|
|
|
using Microsoft.Extensions.DependencyInjection.Extensions; |
|
|
|
using Microsoft.OpenApi.Models; |
|
|
|
using MyCompanyName.MyProjectName.Data; |
|
|
|
using MyCompanyName.MyProjectName.Localization; |
|
|
|
using MyCompanyName.MyProjectName.Menus; |
|
|
|
@ -16,6 +17,7 @@ using Volo.Abp.AspNetCore.Serilog; |
|
|
|
using Volo.Abp.AuditLogging.EntityFrameworkCore; |
|
|
|
using Volo.Abp.Autofac; |
|
|
|
using Volo.Abp.AutoMapper; |
|
|
|
using Volo.Abp.Emailing; |
|
|
|
using Volo.Abp.EntityFrameworkCore; |
|
|
|
using Volo.Abp.EntityFrameworkCore.SqlServer; |
|
|
|
using Volo.Abp.FeatureManagement; |
|
|
|
@ -117,6 +119,11 @@ public class MyProjectNameModule : AbpModule |
|
|
|
{ |
|
|
|
var hostingEnvironment = context.Services.GetHostingEnvironment(); |
|
|
|
var configuration = context.Services.GetConfiguration(); |
|
|
|
|
|
|
|
if (hostingEnvironment.IsDevelopment()) |
|
|
|
{ |
|
|
|
context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>()); |
|
|
|
} |
|
|
|
|
|
|
|
ConfigureMultiTenancy(); |
|
|
|
ConfigureUrls(configuration); |
|
|
|
|