2025-11-11 19:49:52 +00:00
|
|
|
|
using Erp.Languages;
|
|
|
|
|
|
using Erp.Sender;
|
|
|
|
|
|
using Erp.MailQueue;
|
|
|
|
|
|
using Erp.Notifications.Domain;
|
|
|
|
|
|
using Erp.Settings;
|
2026-01-01 21:30:40 +00:00
|
|
|
|
using System;
|
2025-05-06 06:45:49 +00:00
|
|
|
|
using Volo.Abp.AuditLogging;
|
|
|
|
|
|
using Volo.Abp.BackgroundJobs;
|
|
|
|
|
|
using Volo.Abp.FeatureManagement;
|
|
|
|
|
|
using Volo.Abp.Identity;
|
|
|
|
|
|
using Volo.Abp.Modularity;
|
|
|
|
|
|
using Volo.Abp.MultiTenancy;
|
|
|
|
|
|
using Volo.Abp.OpenIddict;
|
|
|
|
|
|
using Volo.Abp.PermissionManagement.Identity;
|
|
|
|
|
|
using Volo.Abp.PermissionManagement.OpenIddict;
|
|
|
|
|
|
using Volo.Abp.TenantManagement;
|
|
|
|
|
|
using Volo.Abp.BlobStoring;
|
|
|
|
|
|
using Volo.Abp.BlobStoring.FileSystem;
|
2026-01-01 21:30:40 +00:00
|
|
|
|
using Volo.Abp.Timing;
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
2025-11-11 19:49:52 +00:00
|
|
|
|
namespace Erp.Platform;
|
2025-05-06 06:45:49 +00:00
|
|
|
|
|
|
|
|
|
|
[DependsOn(
|
|
|
|
|
|
typeof(PlatformDomainSharedModule),
|
|
|
|
|
|
typeof(AbpAuditLoggingDomainModule),
|
|
|
|
|
|
typeof(AbpBackgroundJobsDomainModule),
|
|
|
|
|
|
typeof(AbpFeatureManagementDomainModule),
|
|
|
|
|
|
typeof(AbpIdentityDomainModule),
|
|
|
|
|
|
typeof(AbpOpenIddictDomainModule),
|
|
|
|
|
|
typeof(AbpPermissionManagementDomainOpenIddictModule),
|
|
|
|
|
|
typeof(AbpPermissionManagementDomainIdentityModule),
|
|
|
|
|
|
typeof(AbpTenantManagementDomainModule),
|
|
|
|
|
|
typeof(LanguagesDomainModule),
|
2025-11-11 19:49:52 +00:00
|
|
|
|
typeof(ErpSenderModule),
|
2025-05-06 06:45:49 +00:00
|
|
|
|
typeof(SettingsDomainModule),
|
2025-11-11 19:49:52 +00:00
|
|
|
|
typeof(ErpMailQueueModule),
|
2025-05-06 06:45:49 +00:00
|
|
|
|
typeof(NotificationDomainModule),
|
|
|
|
|
|
typeof(AbpBlobStoringModule),
|
|
|
|
|
|
typeof(AbpBlobStoringFileSystemModule)
|
|
|
|
|
|
)]
|
|
|
|
|
|
public class PlatformDomainModule : AbpModule
|
|
|
|
|
|
{
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
|
|
|
|
{
|
|
|
|
|
|
Configure<AbpMultiTenancyOptions>(options =>
|
|
|
|
|
|
{
|
|
|
|
|
|
options.IsEnabled = PlatformConsts.IsMultiTenant;
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
|
|
//context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>());
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
2026-01-01 21:30:40 +00:00
|
|
|
|
Configure<AbpClockOptions>(options =>
|
|
|
|
|
|
{
|
|
|
|
|
|
options.Kind = DateTimeKind.Unspecified;
|
|
|
|
|
|
});
|
2025-05-06 06:45:49 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-11 19:49:52 +00:00
|
|
|
|
|
|
|
|
|
|
|