Table of Contents

Class Ioc

Namespace
H.Iocable
Assembly
H.Iocable.dll
public static class Ioc
Inheritance
Ioc
Inherited Members

Properties

Services

public static IServiceProvider Services { get; }

Property Value

IServiceProvider

Methods

Build(IServiceCollection)

public static void Build(IServiceCollection serviceCollection)

Parameters

serviceCollection IServiceCollection

ConfigureServices(Action<IServiceCollection>)

public static void ConfigureServices(Action<IServiceCollection> action)

Parameters

action Action<IServiceCollection>

Exist<T>()

public static bool Exist<T>()

Returns

bool

Type Parameters

T

FindAll(Func<ServiceDescriptor, bool>)

public static IEnumerable<ServiceDescriptor> FindAll(Func<ServiceDescriptor, bool> predicate = null)

Parameters

predicate Func<ServiceDescriptor, bool>

Returns

IEnumerable<ServiceDescriptor>

GetAssignableFromServices<T>(Func<T, bool>)

public static IEnumerable<T> GetAssignableFromServices<T>(Func<T, bool> predicate = null)

Parameters

predicate Func<T, bool>

Returns

IEnumerable<T>

Type Parameters

T

GetService<T>(bool)

public static T GetService<T>(bool throwIfNone = true)

Parameters

throwIfNone bool

Returns

T

Type Parameters

T

GetService<T>(Type, bool)

public static T GetService<T>(Type type, bool throwIfNone = true)

Parameters

type Type
throwIfNone bool

Returns

T

Type Parameters

T