Browse Source
fix: change IClientIpAddressProvider registration from transient to singleton
pull/25024/head
maliming
3 weeks ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
1 additions and
1 deletions
-
framework/src/Volo.Abp.AspNetCore.Abstractions/Volo/Abp/AspNetCore/AbpAspNetCoreAbstractionsModule.cs
|
|
|
@ -12,6 +12,6 @@ public class AbpAspNetCoreAbstractionsModule : AbpModule |
|
|
|
{ |
|
|
|
context.Services.AddSingleton<IWebContentFileProvider, NullWebContentFileProvider>(); |
|
|
|
context.Services.AddSingleton<IWebClientInfoProvider, NullWebClientInfoProvider>(); |
|
|
|
context.Services.AddTransient<IClientIpAddressProvider, NullClientIpAddressProvider>(); |
|
|
|
context.Services.AddSingleton<IClientIpAddressProvider, NullClientIpAddressProvider>(); |
|
|
|
} |
|
|
|
} |
|
|
|
|