Ejemplo n.º 1
0
        private static async Task MainAsync(string[] args)
        {
            var host = WebHost.CreateDefaultBuilder(args)
                       .UseStartup <ProgramStartup>()
                       .Build();

            await PokerFaceDataContext.InitializeAsync(host.Services).Capture();

            await host.RunAsync().NoCapture();
        }
Ejemplo n.º 2
0
 public GameService(PokerFaceDataContext context, IMapper mapping, IRandomNameService names)
 {
     this.context = context;
     this.mapping = mapping;
     this.names   = names;
 }