Show / Hide Table of Contents

Class ContainerResolver

Inheritance
System.Object
ContainerResolver
Namespace:InfinniPlatform.IoC
Assembly:InfinniPlatform.Core.dll
Syntax
public sealed class ContainerResolver : object, IContainerResolver

Constructors

| Improve this Doc View Source

ContainerResolver(IContainerServiceRegistry, IServiceProviderAccessor)

Declaration
public ContainerResolver(IContainerServiceRegistry containerRegistry, IServiceProviderAccessor providerAccessor)
Parameters
Type Name Description
IContainerServiceRegistry containerRegistry
IServiceProviderAccessor providerAccessor

Properties

| Improve this Doc View Source

Services

Declaration
public IEnumerable<Type> Services { get; }
Property Value
Type Description
IEnumerable<Type>

Methods

| Improve this Doc View Source

IsRegistered(Type)

Declaration
public bool IsRegistered(Type serviceType)
Parameters
Type Name Description
Type serviceType
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsRegistered<TService>()

Declaration
public bool IsRegistered<TService>()where TService : class
Returns
Type Description
System.Boolean
Type Parameters
Name Description
TService
| Improve this Doc View Source

Resolve(Type)

Declaration
public object Resolve(Type serviceType)
Parameters
Type Name Description
Type serviceType
Returns
Type Description
System.Object
| Improve this Doc View Source

Resolve<TService>()

Declaration
public TService Resolve<TService>()where TService : class
Returns
Type Description
TService
Type Parameters
Name Description
TService
Implements
IContainerResolver.Resolve<TService>()
| Improve this Doc View Source

ResolveOptional(Type)

Declaration
public object ResolveOptional(Type serviceType)
Parameters
Type Name Description
Type serviceType
Returns
Type Description
System.Object
| Improve this Doc View Source

ResolveOptional<TService>()

Declaration
public TService ResolveOptional<TService>()where TService : class
Returns
Type Description
TService
Type Parameters
Name Description
TService
Implements
IContainerResolver.ResolveOptional<TService>()
| Improve this Doc View Source

TryResolve(Type, out Object)

Declaration
public bool TryResolve(Type serviceType, out object serviceInstance)
Parameters
Type Name Description
Type serviceType
System.Object serviceInstance
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryResolve<TService>(out TService)

Declaration
public bool TryResolve<TService>(out TService serviceInstance)where TService : class
Parameters
Type Name Description
TService serviceInstance
Returns
Type Description
System.Boolean
Type Parameters
Name Description
TService

Extension Methods

DynamicCollectionExtensions.GetItem(Object, Int32)
DynamicCollectionExtensions.SetItem(Object, Int32, Object)
DynamicCollectionExtensions.AddItem(Object, Object)
DynamicCollectionExtensions.InsertItem(Object, Int32, Object)
DynamicCollectionExtensions.RemoveItem(Object, Object)
DynamicCollectionExtensions.RemoveItemAt(Object, Int32)
DynamicCollectionExtensions.MoveItem(Object, Object, Int32)
DynamicObjectExtensions.TryGetPropertyValue(Object, String)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TryGetPropertyValueByPath(Object, String)
DynamicObjectExtensions.TrySetPropertyValueByPath(Object, String, Object)
ReflectionExtensions.IsInstanceOfType(Object, Type)
ReflectionExtensions.GetMemberValue(Object, String)
ReflectionExtensions.SetMemberValue(Object, String, Object)
ReflectionExtensions.InvokeMember(Object, String, Object[], out Object, Type[])
ReflectionExtensions.GetFieldValue(Object, FieldInfo)
ReflectionExtensions.SetFieldValue(Object, FieldInfo, Object)
ReflectionExtensions.GetPropertyValue(Object, PropertyInfo)
ReflectionExtensions.SetPropertyValue(Object, PropertyInfo, Object)
ReflectionExtensions.GetMethodDelegate(Object, MethodInfo)
ReflectionExtensions.GetEventDelegate(Object, EventInfo)
ReflectionExtensions.SetEventDelegate(Object, EventInfo, Object)
CommonExtensions.ExecuteSilent<T>(T, Action<T>)
  • Improve this Doc
  • View Source
Back to top © Copyright Infinnity Solutions Ltd, 2010–2017.