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/tests/SampleTool/Program.cs
2022-04-02 19:15:31 -05:00

27 lines
663 B
C#

using System.Threading.Tasks;
using Autofac;
using MfGames.ToolBuilder;
using MfGames.ToolBuilder.Tables;
namespace SampleTool
{
public static class Program
{
public static async Task<int> Main(string[] args)
{
return await ToolBoxBuilder
.Create("SampleTool", args)
.ConfigureContainer(ConfigureContainer)
.Build()
.RunAsync();
}
private static void ConfigureContainer(ContainerBuilder builder)
{
builder.RegisterModule<SampleToolModule>();
builder.RegisterModule<ToolBuilderTablesModule>();
}
}
}