ICustomRegistrationOptions Interface
HAKOM.DependencyInjection.Configuration.Net
Section titled “HAKOM.DependencyInjection.Configuration.Net”HAKOM.DependencyInjection.Configuration.Net.Api
Section titled “HAKOM.DependencyInjection.Configuration.Net.Api”Configures additional dependencies that should be registered with an IContainer on startup. For this to work, the given Assembly should contain a public, static class named as configured in ClassName. That class should define a public static method that takes an IContainer as its first and only parameter and that method should have the same name as configured in RegistrationMethod.
public interface ICustomRegistrationOptions : System.IEquatable<HAKOM.DependencyInjection.Configuration.Net.Api.ICustomRegistrationOptions>Implements System.IEquatable<ICustomRegistrationOptions>
Properties
Section titled “Properties”ICustomRegistrationOptions.Assembly Property
Section titled “ICustomRegistrationOptions.Assembly Property”The absolute or relative path to the .dll file that contains the class specified under ClassName. If the path is relative, the location where the file will be looked for depends on any previously registered instance of IDefaultResourcePathProvider. If there is no IDefaultResourcePathProvider registerd, Default will be used.
string? Assembly { get; }Property Value
Section titled “Property Value”ICustomRegistrationOptions.ClassName Property
Section titled “ICustomRegistrationOptions.ClassName Property”Fully qualified name of the class that implements the given RegistrationMethod.
string? ClassName { get; }Property Value
Section titled “Property Value”ICustomRegistrationOptions.Name Property
Section titled “ICustomRegistrationOptions.Name Property”The name of this registration. Must be unique across all configured ICustomRegistrationOptions.
string? Name { get; }Property Value
Section titled “Property Value”ICustomRegistrationOptions.RegistrationMethod Property
Section titled “ICustomRegistrationOptions.RegistrationMethod Property”Name of the method that should be called with the current IContainer as its first parameter. This value should not be fully qualified, only containing the method name itself.
string? RegistrationMethod { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ICustomRegistrationOptions.Validate() Method
Section titled “ICustomRegistrationOptions.Validate() Method”Validates if all fields have valid values assigned.
void Validate();