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

StartableFacilityRegistrationExtensions

public static ComponentRegistration<TService> Start<TService>(this ComponentRegistration<TService> registration)

public static ComponentRegistration<TService> StartUsingMethod<TService>(this ComponentRegistration<TService> registration, string startMethod)

Assigns the start method for the startable.

public static ComponentRegistration<TService> StartUsingMethod<TService>(this ComponentRegistration<TService> registration, Expression<Func<TService, Action>> methodToUse)

Assigns the start method for the startable.

public static ComponentRegistration<TService> StopUsingMethod<TService>(this ComponentRegistration<TService> registration, string stopMethod)

Assigns the stop method for the startable.

public static ComponentRegistration<TService> StopUsingMethod<TService>(this ComponentRegistration<TService> registration, Expression<Func<TService, Action>> methodToUse)

Assigns the stop method for the startable.