This repository has been archived on 2023-02-02. You can view files and clone it, but cannot push or open issues or pull requests.
mfgames-toolbuilder-cil/src/MfGames.ToolBuilder/ToolBuilderModule.cs

24 lines
608 B
C#
Raw Permalink Normal View History

using Autofac;
2021-09-10 17:33:42 +00:00
using MfGames.ToolBuilder.Services;
2021-09-10 17:33:42 +00:00
namespace MfGames.ToolBuilder
{
/// <summary>
/// The Autofac module to pull in the components inside this assembly.
/// </summary>
public class ToolBuilderModule : Module
{
/// <inheritdoc />
protected override void Load(ContainerBuilder builder)
{
builder
.RegisterAssemblyTypes(this.GetType().Assembly)
.Except<ConfigToolGlobal>()
.Except<LoggingToolGlobal>()
2021-09-10 17:33:42 +00:00
.AsSelf()
.AsImplementedInterfaces();
}
}
}