using Fake.Modularity; using Fake.ObjectMapping.AutoMapper; using Fake.Security.Claims; using Microsoft.Extensions.DependencyInjection; using Oms.Application.Integrations.SmallBagTrack; using Oms.Application.Integrations.Itfx; using Oms.Application.Integrations.PlatformShop; using Oms.Application.Shared; using Oms.Application.Workers; using Oms.Domain; namespace Oms.Application; /// /// OMS 应用层模块注册。 /// [DependsOn( typeof(OmsDomainModule), typeof(FakeObjectMappingAutoMapperModule) )] public class OmsApplicationModule : FakeModule { /// public override void ConfigureServices(ServiceConfigurationContext context) { context.Services.Configure(options => { options.ScanProfiles(); }); context.Services.AddOmsSmallBagTrack(context.Services.GetConfiguration()); context.Services.AddOmsItfxIntegration(context.Services.GetConfiguration()); context.Services.AddOmsPlatformShopIntegration(context.Services.GetConfiguration()); context.Services.AddOmsOrderBatchMessaging(context.Services.GetConfiguration()); context.Services.AddXhsLlmClient(); context.Services.AddDistributedMemoryCache(); context.Services.AddHostedService(); } }