Skip to content

Commit

Permalink
feat:调整类名
Browse files Browse the repository at this point in the history
  • Loading branch information
WangJunZzz committed Jul 3, 2023
1 parent 863152e commit a637460
Show file tree
Hide file tree
Showing 13 changed files with 18 additions and 18 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
namespace Lion.AbpPro.WebGateway
{
[DependsOn(
typeof(SharedHostingGatewayModule))]
public class WebGatewayModule : AbpModule
typeof(AbpProSharedHostingGatewayModule))]
public class AbpProWebGatewayModule : AbpModule
{
private const string DefaultCorsPolicyName = "Default";

Expand Down
2 changes: 1 addition & 1 deletion aspnet-core/gateways/Lion.AbpPro.WebGateway/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ public class Startup
{
public void ConfigureServices(IServiceCollection services)
{
services.AddApplication<WebGatewayModule>();
services.AddApplication<AbpProWebGatewayModule>();
}

public void Configure(IApplicationBuilder app)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ namespace Lion.AbpPro.BasicManagement;
typeof(AbpEntityFrameworkCoreMySQLModule),
typeof(AbpAspNetCoreSerilogModule),
typeof(AbpSwashbuckleModule),
typeof(SharedHostingMicroserviceModule)
typeof(AbpProSharedHostingMicroserviceModule)
)]
public class BasicManagementHttpApiHostModule : AbpModule
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Lion.AbpPro
{
[DependsOn(
typeof(AbpProHttpApiModule),
typeof(SharedHostingMicroserviceModule),
typeof(AbpProSharedHostingMicroserviceModule),
typeof(AbpAspNetCoreMvcUiMultiTenancyModule),
typeof(AbpProEntityFrameworkCoreModule),
typeof(AbpAspNetCoreAuthenticationJwtBearerModule),
Expand Down Expand Up @@ -46,7 +46,7 @@ public override void ConfigureServices(ServiceConfigurationContext context)
context.Services.Configure<RequestLocalizationOptions>(options =>
{
//options.RequestCultureProviders.RemoveAll(provider => provider is AcceptLanguageHeaderRequestCultureProvider);
options.RequestCultureProviders.Add(new LionAcceptLanguageHeaderRequestCultureProvider());
options.RequestCultureProviders.Add(new AbpProAcceptLanguageHeaderRequestCultureProvider());
});
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ namespace Lion.AbpPro
[DependsOn(
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule))]
public class SharedHostingGatewayModule : AbpModule
public class AbpProSharedHostingGatewayModule : AbpModule
{

public override void ConfigureServices(ServiceConfigurationContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ namespace Lion.AbpPro;
typeof(AbpSwashbuckleModule),
typeof(AbpAutofacModule),
typeof(AbpProCoreModule))]
public class SharedHostingMicroserviceModule : AbpModule
public class AbpProSharedHostingMicroserviceModule : AbpModule
{
private const string DefaultCorsPolicyName = "Default";

Expand All @@ -34,8 +34,8 @@ private void ConfigureAbpExceptions(ServiceConfigurationContext context)
(
options =>
{
options.Filters.Add(typeof(LionExceptionFilter));
options.Filters.Add(typeof(LionResultFilter));
options.Filters.Add(typeof(AbpProExceptionFilter));
options.Filters.Add(typeof(AbpProResultFilter));
}
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static IApplicationBuilder UseLionRequestLocalization(this IApplicationBu
// 移除自带header解析器
options.RequestCultureProviders.RemoveAll(provider=> provider is AcceptLanguageHeaderRequestCultureProvider);
// 添加header解析器
options.RequestCultureProviders.Add(new LionAcceptLanguageHeaderRequestCultureProvider());
options.RequestCultureProviders.Add(new AbpProAcceptLanguageHeaderRequestCultureProvider());
});
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Microsoft.AspNetCore.Localization;

public class LionAcceptLanguageHeaderRequestCultureProvider : AcceptLanguageHeaderRequestCultureProvider
public class AbpProAcceptLanguageHeaderRequestCultureProvider : AcceptLanguageHeaderRequestCultureProvider
{
public override async Task<ProviderCultureResult> DetermineProviderCultureResult(HttpContext httpContext)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Microsoft.AspNetCore.Mvc.Filters;

public sealed class LionExceptionFilter : IAsyncExceptionFilter, ITransientDependency
public sealed class AbpProExceptionFilter : IAsyncExceptionFilter, ITransientDependency
{
public async Task OnExceptionAsync(ExceptionContext context)
{
Expand Down Expand Up @@ -45,7 +45,7 @@ private async Task HandleAndWrapException(ExceptionContext context)
remoteServiceErrorInfoBuilder.AppendLine($"---------- {nameof(RemoteServiceErrorInfo)} ----------");
remoteServiceErrorInfoBuilder.AppendLine(context.GetRequiredService<IJsonSerializer>().Serialize(remoteServiceErrorInfo, indented: true));

var logger = context.GetService<ILogger<LionExceptionFilter>>(NullLogger<LionExceptionFilter>.Instance);
var logger = context.GetService<ILogger<AbpProExceptionFilter>>(NullLogger<AbpProExceptionFilter>.Instance);

logger.LogWithLevel(logLevel, remoteServiceErrorInfoBuilder.ToString());

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Microsoft.AspNetCore.Mvc.Filters;

public class LionResultFilter : IResultFilter, ITransientDependency
public class AbpProResultFilter : IResultFilter, ITransientDependency
{
public void OnResultExecuting(ResultExecutingContext context)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ namespace MyCompanyName.MyProjectName
{
[DependsOn(
typeof(MyProjectNameHttpApiModule),
typeof(SharedHostingMicroserviceModule),
typeof(AbpProSharedHostingMicroserviceModule),
typeof(AbpAspNetCoreMvcUiMultiTenancyModule),
typeof(MyProjectNameEntityFrameworkCoreModule),
typeof(AbpAspNetCoreAuthenticationJwtBearerModule),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace MyCompanyName.MyProjectName.WebGateway
{
[DependsOn(
typeof(SharedHostingGatewayModule))]
typeof(AbpProSharedHostingGatewayModule))]
public class WebGatewayModule : AbpModule
{
private const string DefaultCorsPolicyName = "Default";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace MyCompanyName.MyProjectName
{
[DependsOn(
typeof(MyProjectNameHttpApiModule),
typeof(SharedHostingMicroserviceModule),
typeof(AbpProSharedHostingMicroserviceModule),
typeof(AbpAspNetCoreMvcUiMultiTenancyModule),
typeof(MyProjectNameEntityFrameworkCoreModule),
typeof(AbpAspNetCoreAuthenticationJwtBearerModule),
Expand Down

0 comments on commit a637460

Please sign in to comment.