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

28 lines
663 B
C#
Raw Normal View History

using System.Threading.Tasks;
2021-09-10 17:33:42 +00:00
using Autofac;
using MfGames.ToolBuilder;
2022-04-02 23:52:44 +00:00
using MfGames.ToolBuilder.Tables;
2021-09-10 17:33:42 +00:00
namespace SampleTool
{
public static class Program
{
public static async Task<int> Main(string[] args)
{
return await ToolBoxBuilder
.Create("SampleTool", args)
2021-09-10 17:33:42 +00:00
.ConfigureContainer(ConfigureContainer)
.Build()
2021-09-10 17:33:42 +00:00
.RunAsync();
}
private static void ConfigureContainer(ContainerBuilder builder)
{
builder.RegisterModule<SampleToolModule>();
2022-04-02 23:52:44 +00:00
builder.RegisterModule<ToolBuilderTablesModule>();
2021-09-10 17:33:42 +00:00
}
}
}