Show / Hide Table of Contents

Class ParameterAdapter

An implementation of ITypedResolvable which wraps an Autofac Autofac.Core.Parameter.

Inheritance
System.Object
ParameterAdapter
Implements
ITypedResolvable
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.Autofac.dll
Syntax
public class ParameterAdapter : ITypedResolvable

Constructors

| Improve this Doc View Source

ParameterAdapter(Parameter)

Initialises a new instance of ParameterAdapter.

Declaration
public ParameterAdapter(Parameter parameter)
Parameters
Type Name Description
Autofac.Core.Parameter parameter

The autofac parameter.

Exceptions
Type Condition
System.ArgumentNullException

If parameter is null.

Properties

| Improve this Doc View Source

Parameter

Gets the wrapped parameter.

Declaration
public Parameter Parameter { get; }
Property Value
Type Description
Autofac.Core.Parameter
| Improve this Doc View Source

Type

Always returns the type System.Object.

Declaration
public Type Type { get; }
Property Value
Type Description
System.Type

Methods

| Improve this Doc View Source

Resolve(IServiceProvider)

Always throws System.NotSupportedException.

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

A service provider.

Returns
Type Description
System.Object

Not applicable, this method always raises an exception.

Exceptions
Type Condition
System.NotSupportedException

This method always throws this exception, whilst this is a Liskov Substitution violation, this class is specifically detected and this method is never used.

Implements

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