コード例 #1
0
    public static async Task Main()
    {
        await DbContextBuilder.Start();

        var webHostBuilder = WebHost.CreateDefaultBuilder();
        var hostBuilder    = webHostBuilder.UseStartup <Startup>();

        hostBuilder.Build().Run();
    }
コード例 #2
0
    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"; };
    }