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
2022-04-02 19:15:30 -05:00

24 lines
608 B
C#

using Autofac;
using MfGames.ToolBuilder.Services;
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>()
.AsSelf()
.AsImplementedInterfaces();
}
}
}