Class ParameterAdapter
An implementation of ITypedResolvable which wraps an Autofac Autofac.Core.Parameter.
Inheritance
System.Object
ParameterAdapter
Implements
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 SourceParameterAdapter(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 |
Properties
| Improve this Doc View SourceParameter
Gets the wrapped parameter.
Declaration
public Parameter Parameter { get; }
Property Value
Type | Description |
---|---|
Autofac.Core.Parameter |
Type
Always returns the type System.Object.
Declaration
public Type Type { get; }
Property Value
Type | Description |
---|---|
System.Type |
Methods
| Improve this Doc View SourceResolve(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. |