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(); }
public GameService(PokerFaceDataContext context, IMapper mapping, IRandomNameService names) { this.context = context; this.mapping = mapping; this.names = names; }