Show / Hide Table of Contents

Interface ICachedServiceProviderBase

Inherited Members
IServiceProvider.GetService(Type)
Namespace: Volo.Abp.DependencyInjection
Assembly: Volo.Abp.Core.dll
Syntax
public interface ICachedServiceProviderBase : IKeyedServiceProvider, IServiceProvider

Methods

GetService(Type, Func<IServiceProvider, object>)

Declaration
object GetService(Type serviceType, Func<IServiceProvider, object> factory)
Parameters
Type Name Description
Type serviceType
Func<IServiceProvider, object> factory
Returns
Type Description
object

GetService(Type, object)

Declaration
object GetService(Type serviceType, object defaultValue)
Parameters
Type Name Description
Type serviceType
object defaultValue
Returns
Type Description
object

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

Declaration
T GetService<T>(Func<IServiceProvider, object> factory)
Parameters
Type Name Description
Func<IServiceProvider, object> factory
Returns
Type Description
T
Type Parameters
Name Description
T

GetService<T>(T)

Declaration
T GetService<T>(T defaultValue)
Parameters
Type Name Description
T defaultValue
Returns
Type Description
T
Type Parameters
Name Description
T

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
In this article
Back to top Powered by ABP.IO Platform