Show / Hide Table of Contents

Class DependencyInjectionObjectResolver

Implementation of IGetsSingleObjectFromResolutionInfo which uses functionality within Microsoft.Extensions.DependencyInjection.Abstractions to resolve services.

Inheritance
System.Object
DependencyInjectionObjectResolver
Implements
IGetsSingleObjectFromResolutionInfo
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: CSF.DecoratorBuilder
Assembly: CSF.DecoratorBuilder.Extensions.DependencyInjection.dll
Syntax
public class DependencyInjectionObjectResolver : IGetsSingleObjectFromResolutionInfo

Constructors

| Improve this Doc View Source

DependencyInjectionObjectResolver(IServiceProvider)

Initialises a new instance of DependencyInjectionObjectResolver.

Declaration
public DependencyInjectionObjectResolver(IServiceProvider services)
Parameters
Type Name Description
System.IServiceProvider services

A service provider.

Exceptions
Type Condition
System.ArgumentNullException

If services is null.

Methods

| Improve this Doc View Source

GetService(Type, SingleObjectResolutionInfo, Object)

Resolve an instance of the object.

Declaration
public object GetService(Type serviceType, SingleObjectResolutionInfo resolutionInfo, object wrapped = null)
Parameters
Type Name Description
System.Type serviceType

The overall service type.

SingleObjectResolutionInfo resolutionInfo

The resolution information for the object to resolve.

System.Object wrapped

An optional instance of a service to wrap.

Returns
Type Description
System.Object

The resolved object.

Implements

IGetsSingleObjectFromResolutionInfo
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX