Class ServiceEntryExtensions

Defines some extensions for the AbstractServiceEntry class.

Inheritance
System.Object
ServiceEntryExtensions
Namespace: Solti.Utils.DI.Interfaces
Assembly: Solti.Utils.DI.Interfaces.dll
Syntax
public static class ServiceEntryExtensions : Object

Methods

IsFactory(AbstractServiceEntry)

Returns true if the service was registered via Factory(IServiceCollection, Type, Object, Expression<FactoryDelegate>, LifetimeBase, ServiceOptions) call.

Declaration
public static bool IsFactory(this AbstractServiceEntry self)
Parameters
Type Name Description
AbstractServiceEntry self
Returns
Type Description
System.Boolean

IsService(AbstractServiceEntry)

Returns true if the service was registered via Service(IServiceCollection, Type, Object, Type, LifetimeBase, ServiceOptions) call.

Declaration
public static bool IsService(this AbstractServiceEntry self)
Parameters
Type Name Description
AbstractServiceEntry self
Returns
Type Description
System.Boolean
In This Article
Back to top Generated by DocFX