59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
using System;
|
|
using Kurs.Languages;
|
|
using Kurs.Sender;
|
|
using Kurs.MailQueue;
|
|
using Kurs.Notifications.Domain;
|
|
using Kurs.Settings;
|
|
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.Timing;
|
|
using Volo.Abp.BlobStoring;
|
|
using Volo.Abp.BlobStoring.FileSystem;
|
|
|
|
namespace Kurs.Platform;
|
|
|
|
[DependsOn(
|
|
typeof(PlatformDomainSharedModule),
|
|
typeof(AbpAuditLoggingDomainModule),
|
|
typeof(AbpBackgroundJobsDomainModule),
|
|
typeof(AbpFeatureManagementDomainModule),
|
|
typeof(AbpIdentityDomainModule),
|
|
typeof(AbpOpenIddictDomainModule),
|
|
typeof(AbpPermissionManagementDomainOpenIddictModule),
|
|
typeof(AbpPermissionManagementDomainIdentityModule),
|
|
typeof(AbpTenantManagementDomainModule),
|
|
typeof(LanguagesDomainModule),
|
|
typeof(KursSenderModule),
|
|
typeof(SettingsDomainModule),
|
|
typeof(KursMailQueueModule),
|
|
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.Utc;
|
|
});
|
|
}
|
|
}
|