20 lines
484 B
C#
20 lines
484 B
C#
|
using Autofac;
|
|||
|
|
|||
|
namespace MfGames.ToolBuilder
|
|||
|
{
|
|||
|
/// <summary>
|
|||
|
/// The Autofac module to pull in the components inside this assembly.
|
|||
|
/// </summary>
|
|||
|
public class SampleToolModule : Module
|
|||
|
{
|
|||
|
/// <inheritdoc />
|
|||
|
protected override void Load(ContainerBuilder builder)
|
|||
|
{
|
|||
|
builder
|
|||
|
.RegisterAssemblyTypes(this.GetType().Assembly)
|
|||
|
.AsSelf()
|
|||
|
.AsImplementedInterfaces();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|