Table of Contents

Interface IAbpLazyServiceProvider

Namespace
Volo.Abp.DependencyInjection
Assembly
Volo.Abp.Core.dll

This service is equivalent of the ITransientCachedServiceProvider. Use ITransientCachedServiceProvider instead of this interface, for new projects.

public interface IAbpLazyServiceProvider : ICachedServiceProviderBase, IKeyedServiceProvider, IServiceProvider
Inherited Members
Extension Methods

Methods

LazyGetRequiredService(Type)

This method is equivalent of the GetRequiredService method. It does exists for backward compatibility.

object LazyGetRequiredService(Type serviceType)

Parameters

serviceType Type

Returns

object

LazyGetRequiredService<T>()

This method is equivalent of the GetRequiredService method. It does exists for backward compatibility.

T LazyGetRequiredService<T>()

Returns

T

Type Parameters

T

LazyGetService(Type)

This method is equivalent of the GetService method. It does exists for backward compatibility.

object? LazyGetService(Type serviceType)

Parameters

serviceType Type

Returns

object

LazyGetService(Type, Func<IServiceProvider, object>)

This method is equivalent of the GetService(Type, Func<IServiceProvider, object>) method. It does exists for backward compatibility.

object LazyGetService(Type serviceType, Func<IServiceProvider, object> factory)

Parameters

serviceType Type
factory Func<IServiceProvider, object>

Returns

object

LazyGetService(Type, object)

This method is equivalent of the GetService(Type, object) method. It does exists for backward compatibility.

object LazyGetService(Type serviceType, object defaultValue)

Parameters

serviceType Type
defaultValue object

Returns

object

LazyGetService<T>()

This method is equivalent of the GetService method. It does exists for backward compatibility.

T? LazyGetService<T>()

Returns

T

Type Parameters

T

LazyGetService<T>(Func<IServiceProvider, object>)

This method is equivalent of the GetService<T>(Func<IServiceProvider, object>) method. It does exists for backward compatibility.

T LazyGetService<T>(Func<IServiceProvider, object> factory)

Parameters

factory Func<IServiceProvider, object>

Returns

T

Type Parameters

T

LazyGetService<T>(T)

This method is equivalent of the GetService<T>(T) method. It does exists for backward compatibility.

T LazyGetService<T>(T defaultValue)

Parameters

defaultValue T

Returns

T

Type Parameters

T