public static async Task Main() { await DbContextBuilder.Start(); var webHostBuilder = WebHost.CreateDefaultBuilder(); var hostBuilder = webHostBuilder.UseStartup <Startup>(); hostBuilder.Build().Run(); }
static async Task Start() { await DbContextBuilder.Start(); var server = GetTestServer(); client = server.CreateClient(); websocketClient = server.CreateWebSocketClient(); websocketClient.ConfigureRequest = request => { request.Headers["Sec-WebSocket-Protocol"] = "graphql-ws"; }; }