Skip to content
Documentation

ICustomRegistrationOptions Interface

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>

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; }

System.String

ICustomRegistrationOptions.ClassName Property

Section titled “ICustomRegistrationOptions.ClassName Property”

Fully qualified name of the class that implements the given RegistrationMethod.

string? ClassName { get; }

System.String

The name of this registration. Must be unique across all configured ICustomRegistrationOptions.

string? Name { get; }

System.String

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; }

System.String

ICustomRegistrationOptions.Validate() Method

Section titled “ICustomRegistrationOptions.Validate() Method”

Validates if all fields have valid values assigned.

void Validate();
© 2026 Volue.Version v0.6.38017 November 2026