|
|
|
@ -35,6 +35,7 @@ namespace Volo.Abp.Application.Services |
|
|
|
{ |
|
|
|
public IAbpLazyServiceProvider LazyServiceProvider { get; set; } |
|
|
|
|
|
|
|
[Obsolete("Use LazyServiceProvider instead.")] |
|
|
|
public IServiceProvider ServiceProvider { get; set; } |
|
|
|
|
|
|
|
public static string[] CommonPostfixes { get; set; } = { "AppService", "ApplicationService", "Service" }; |
|
|
|
@ -51,7 +52,7 @@ namespace Volo.Abp.Application.Services |
|
|
|
? provider.GetRequiredService<IObjectMapper>() |
|
|
|
: (IObjectMapper) provider.GetRequiredService(typeof(IObjectMapper<>).MakeGenericType(ObjectMapperContext))); |
|
|
|
|
|
|
|
public IGuidGenerator GuidGenerator => LazyServiceProvider.LazyGetService<IGuidGenerator>(SimpleGuidGenerator.Instance); |
|
|
|
protected IGuidGenerator GuidGenerator => LazyServiceProvider.LazyGetService<IGuidGenerator>(SimpleGuidGenerator.Instance); |
|
|
|
|
|
|
|
protected ILoggerFactory LoggerFactory => LazyServiceProvider.LazyGetRequiredService<ILoggerFactory>(); |
|
|
|
|
|
|
|
|