<PackageReference Include="Castle.Windsor" Version="3.2.0" />

Dependency

public sealed class Dependency
public static Parameter OnAppSettingsValue(string dependencyName, string settingName)

Specifies that value from application configuration file's appSettings section named settingName should be used to satisfy dependencies matched by dependencyName. The value is provided as a string and will be converted to appropriate type when resolving.

public static Parameter OnAppSettingsValue(string name)

Specifies that value from application configuration file's appSettings section named name should be used to satisfy dependencies matched by name. The value is provided as a string and will be converted to appropriate type when resolving.

public static ServiceOverride OnComponent(string dependencyName, string componentName)

Specifies that component registered with componentName should be used to satisfy dependencies matched by dependencyName

public static ServiceOverride OnComponent(Type dependencyType, string componentName)

Specifies that component registered with componentName should be used to satisfy dependencies matched by dependencyType

public static ServiceOverride OnComponent(string dependencyName, Type componentType)

Specifies that component registered with componentType should be used to satisfy dependencies matched by dependencyName

public static ServiceOverride OnComponent(Type dependencyType, Type componentType)

Specifies that component registered with componentType should be used to satisfy dependencies matched by dependencyType

public static ServiceOverride OnComponent<TDependencyType, TComponentType>()

Specifies that component registered with TComponentType should be used to satisfy dependencies matched by TDependencyType

public static ServiceOverride OnComponentCollection(string collectionDependencyName, string[] componentNames)

Specifies that components registered with componentNames should be used to satisfy collection dependencies matched by collectionDependencyName

public static ServiceOverride OnComponentCollection(Type collectionDependencyType, string[] componentNames)

Specifies that components registered with componentNames should be used to satisfy collection dependencies matched by collectionDependencyType

public static ServiceOverride OnComponentCollection<TCollectionDependencyType>(string[] componentNames) where TCollectionDependencyType : IEnumerable

Specifies that components registered with componentNames should be used to satisfy collection dependencies matched by TCollectionDependencyType

public static ServiceOverride OnComponentCollection(string collectionDependencyName, Type[] componentTypes)

Specifies that components registered with componentTypes should be used to satisfy collection dependencies matched by collectionDependencyName

public static ServiceOverride OnComponentCollection(Type collectionDependencyType, Type[] componentTypes)

Specifies that components registered with componentTypes should be used to satisfy collection dependencies matched by collectionDependencyType

public static ServiceOverride OnComponentCollection<TCollectionDependencyType>(Type[] componentTypes) where TCollectionDependencyType : IEnumerable

Specifies that components registered with componentTypes should be used to satisfy collection dependencies matched by TCollectionDependencyType

public static Parameter OnConfigValue(string dependencyName, string valueAsString)

Specifies that value valueAsString should be used to satisfy dependencies matched by dependencyName. The value is provided as a string and will be converted to appropriate type when resolving.

public static Parameter OnConfigValue(string dependencyName, IConfiguration value)

Specifies that value value should be used to satisfy dependencies matched by dependencyName. The value is provided as a string and will be converted to appropriate type when resolving.

public static Property OnResource<TResources>(string dependencyName, string resourceName)

public static Property OnResource(string dependencyName, ResourceManager resourceManager, string resourceName)

public static Property OnValue(string dependencyName, object value)

Specifies that value value should be used to satisfy dependencies matched by dependencyName

public static Property OnValue(Type dependencyType, object value)

Specifies that value value should be used to satisfy dependencies matched by dependencyType

public static Property OnValue<TDependencyType>(object value)

Specifies that value value should be used to satisfy dependencies matched by TDependencyType