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

26 lines
700 B
C#
Raw Normal View History

2021-09-10 17:33:42 +00:00
using Autofac;
using MfGames.ToolBuilder.Globals;
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<ToolService>()
.Except<ToolNames>()
.Except<ConfigToolGlobalService>()
.Except<LoggingToolGlobalService>()
2021-09-10 17:33:42 +00:00
.AsSelf()
.AsImplementedInterfaces();
}
}
}