sozsoft-platform/api/src/Sozsoft.Platform.Domain/PlatformDomainModule.cs

62 lines
1.7 KiB
C#
Raw Normal View History

2026-02-24 20:44:16 +00:00
using Sozsoft.Languages;
using Sozsoft.Sender;
using Sozsoft.MailQueue;
using Sozsoft.Notifications.Domain;
using Sozsoft.Settings;
using System;
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;
using Volo.Abp.Timing;
namespace Sozsoft.Platform;
[DependsOn(
typeof(PlatformDomainSharedModule),
typeof(AbpAuditLoggingDomainModule),
typeof(AbpBackgroundJobsDomainModule),
typeof(AbpFeatureManagementDomainModule),
typeof(AbpIdentityDomainModule),
typeof(AbpOpenIddictDomainModule),
typeof(AbpPermissionManagementDomainOpenIddictModule),
typeof(AbpPermissionManagementDomainIdentityModule),
typeof(AbpTenantManagementDomainModule),
typeof(LanguagesDomainModule),
typeof(ErpSenderModule),
typeof(SettingsDomainModule),
typeof(ErpMailQueueModule),
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
Configure<AbpClockOptions>(options =>
{
options.Kind = DateTimeKind.Unspecified;
});
}
}