Blame view

泰额版/Food Labeling Management Code/Yi.Abp.Net8/module/food-labeling/FoodLabeling.Th.Application/FoodLabelingThApplicationModule.cs 1.18 KB
e1c4ae8e   李曜臣   5-19泰额版优化
1
  using FoodLabeling.Application;
59e51671   “wangming”   1
2
  using FoodLabeling.Th.Application.Contracts;
e1c4ae8e   李曜臣   5-19泰额版优化
3
  using FoodLabeling.Th.Application.Contracts.Options;
59e51671   “wangming”   1
4
  using FoodLabeling.Th.Domain;
e1c4ae8e   李曜臣   5-19泰额版优化
5
6
7
  using Microsoft.Extensions.Configuration;
  using Microsoft.Extensions.DependencyInjection;
  using Volo.Abp.AspNetCore.Mvc;
59e51671   “wangming”   1
8
9
10
11
12
13
14
15
16
17
  using Yi.Framework.Ddd.Application;
  
  namespace FoodLabeling.Th.Application;
  
  /// <summary>
  /// Food Labeling 模块 - 应用层(泰额版)
  /// </summary>
  [DependsOn(
      typeof(FoodLabelingThApplicationContractsModule),
      typeof(FoodLabelingThDomainModule),
e1c4ae8e   李曜臣   5-19泰额版优化
18
      typeof(FoodLabelingApplicationModule),
59e51671   “wangming”   1
19
20
21
22
      typeof(YiFrameworkDddApplicationModule)
  )]
  public class FoodLabelingThApplicationModule : AbpModule
  {
e1c4ae8e   李曜臣   5-19泰额版优化
23
24
25
26
27
28
29
30
31
32
33
      public override void ConfigureServices(ServiceConfigurationContext context)
      {
          Configure<FoodLabelingThTenantDatabaseOptions>(
              context.Services.GetConfiguration().GetSection(FoodLabelingThTenantDatabaseOptions.SectionName));
  
          Configure<AbpAspNetCoreMvcOptions>(options =>
          {
              options.ConventionalControllers.Create(typeof(FoodLabelingThApplicationModule).Assembly,
                  opt => opt.RemoteServiceName = "泰额版-食品标签");
          });
      }
59e51671   “wangming”   1
34
  }