28 lines
631 B
C#
28 lines
631 B
C#
|
using System.Threading.Tasks;
|
|||
|
|
|||
|
using Autofac;
|
|||
|
|
|||
|
using MfGames.ToolBuilder;
|
|||
|
|
|||
|
namespace SampleTool
|
|||
|
{
|
|||
|
public static class Program
|
|||
|
{
|
|||
|
public static async Task<int> Main(string[] args)
|
|||
|
{
|
|||
|
return await ToolBuilder
|
|||
|
.Create(
|
|||
|
"Sample Application",
|
|||
|
"SampleApplication",
|
|||
|
args)
|
|||
|
.ConfigureContainer(ConfigureContainer)
|
|||
|
.RunAsync();
|
|||
|
}
|
|||
|
|
|||
|
private static void ConfigureContainer(ContainerBuilder builder)
|
|||
|
{
|
|||
|
builder.RegisterModule<SampleToolModule>();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|