Browse Source
Merge pull request #2305 from abpframework/maliming/HttpApiModuleApplicationParts
Add HttpApi module assemblies to Application Parts for all modules.
pull/2327/head
Halil İbrahim Kalkan
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with
86 additions and
2 deletions
-
modules/account/src/Volo.Abp.Account.HttpApi/Volo/Abp/Account/AbpAccountHttpApiModule.cs
-
modules/blogging/src/Volo.Blogging.HttpApi/Volo/Blogging/BloggingHttpApiModule.cs
-
modules/docs/src/Volo.Docs.Admin.HttpApi/Volo/Docs/Admin/DocsAdminHttpApiModule.cs
-
modules/docs/src/Volo.Docs.HttpApi/Volo/Docs/DocsHttpApiModule.cs
-
modules/feature-management/src/Volo.Abp.FeatureManagement.HttpApi/Volo/Abp/FeatureManagement/AbpFeatureManagementHttpApiModule.cs
-
modules/permission-management/src/Volo.Abp.PermissionManagement.HttpApi/Volo/Abp/PermissionManagement/AbpPermissionManagementHttpApiModule.cs
-
modules/tenant-management/src/Volo.Abp.TenantManagement.HttpApi/Volo/Abp/TenantManagement/AbpTenantManagementHttpApiModule.cs
-
samples/BookStore-Modular/modules/book-management/src/Acme.BookStore.BookManagement.HttpApi/BookManagementHttpApiModule.cs
-
samples/MicroserviceDemo/modules/product/src/ProductManagement.HttpApi/ProductManagement/ProductManagementHttpApiModule.cs
-
templates/module/aspnet-core/src/MyCompanyName.MyProjectName.HttpApi/MyProjectNameHttpApiModule.cs
|
|
|
@ -4,6 +4,7 @@ using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.Identity; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace Volo.Abp.Account |
|
|
|
{ |
|
|
|
@ -13,6 +14,14 @@ namespace Volo.Abp.Account |
|
|
|
typeof(AbpAspNetCoreMvcModule))] |
|
|
|
public class AbpAccountHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpAccountHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
|
|
|
|
@ -3,6 +3,7 @@ using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Blogging.Localization; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace Volo.Blogging |
|
|
|
{ |
|
|
|
@ -11,6 +12,13 @@ namespace Volo.Blogging |
|
|
|
typeof(AbpAspNetCoreMvcModule))] |
|
|
|
public class BloggingHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(BloggingHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -3,6 +3,7 @@ using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Docs.Localization; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace Volo.Docs.Admin |
|
|
|
{ |
|
|
|
@ -12,6 +13,13 @@ namespace Volo.Docs.Admin |
|
|
|
)] |
|
|
|
public class DocsAdminHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(DocsAdminHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace Volo.Docs |
|
|
|
{ |
|
|
|
@ -9,6 +10,12 @@ namespace Volo.Docs |
|
|
|
)] |
|
|
|
public class DocsHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
|
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(DocsHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -3,6 +3,7 @@ using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.FeatureManagement.Localization; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace Volo.Abp.FeatureManagement |
|
|
|
{ |
|
|
|
@ -11,6 +12,14 @@ namespace Volo.Abp.FeatureManagement |
|
|
|
typeof(AbpAspNetCoreMvcModule))] |
|
|
|
public class AbpFeatureManagementHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpFeatureManagementHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
|
|
|
|
@ -3,6 +3,7 @@ using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.PermissionManagement.Localization; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace Volo.Abp.PermissionManagement.HttpApi |
|
|
|
{ |
|
|
|
@ -12,6 +13,14 @@ namespace Volo.Abp.PermissionManagement.HttpApi |
|
|
|
)] |
|
|
|
public class AbpPermissionManagementHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpPermissionManagementHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
|
|
|
|
@ -5,6 +5,7 @@ using Volo.Abp.FeatureManagement.Localization; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Volo.Abp.TenantManagement.Localization; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace Volo.Abp.TenantManagement |
|
|
|
{ |
|
|
|
@ -15,6 +16,14 @@ namespace Volo.Abp.TenantManagement |
|
|
|
)] |
|
|
|
public class AbpTenantManagementHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(AbpTenantManagementHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
|
|
|
|
@ -3,6 +3,7 @@ using Acme.BookStore.BookManagement.Localization; |
|
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace Acme.BookStore.BookManagement |
|
|
|
{ |
|
|
|
@ -11,6 +12,14 @@ namespace Acme.BookStore.BookManagement |
|
|
|
typeof(AbpAspNetCoreMvcModule))] |
|
|
|
public class BookManagementHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(BookManagementHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
|
|
|
|
@ -1,5 +1,6 @@ |
|
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace ProductManagement |
|
|
|
{ |
|
|
|
@ -8,6 +9,12 @@ namespace ProductManagement |
|
|
|
typeof(AbpAspNetCoreMvcModule))] |
|
|
|
public class ProductManagementHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
|
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(ProductManagementHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
@ -3,6 +3,7 @@ using MyCompanyName.MyProjectName.Localization; |
|
|
|
using Volo.Abp.AspNetCore.Mvc; |
|
|
|
using Volo.Abp.Localization; |
|
|
|
using Volo.Abp.Modularity; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
|
|
|
|
namespace MyCompanyName.MyProjectName |
|
|
|
{ |
|
|
|
@ -11,6 +12,14 @@ namespace MyCompanyName.MyProjectName |
|
|
|
typeof(AbpAspNetCoreMvcModule))] |
|
|
|
public class MyProjectNameHttpApiModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
PreConfigure<IMvcBuilder>(mvcBuilder => |
|
|
|
{ |
|
|
|
mvcBuilder.AddApplicationPartIfNotExists(typeof(MyProjectNameHttpApiModule).Assembly); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context) |
|
|
|
{ |
|
|
|
Configure<AbpLocalizationOptions>(options => |
|
|
|
|