コード例 #1
0
 public async Task SendAsync(GraphQlServerUri url, string graphQl)
 {
     HttpContent body = new StringContent(graphQl);
     body.Headers.ContentType = MediaTypeHeaderValue.Parse("application/graphql");
     HttpResponseMessage response = await client.PostAsync(url, body);
     response.EnsureSuccessStatusCode();
 }
コード例 #2
0
        public async Task SendAsync(GraphQlServerUri url, string graphQl)
        {
            HttpContent body = new StringContent(graphQl);

            body.Headers.ContentType = MediaTypeHeaderValue.Parse("application/graphql");
            HttpResponseMessage response = await client.PostAsync(url, body);

            response.EnsureSuccessStatusCode();
        }
コード例 #3
0
 public async Task SendAsync(GraphQlServerUri url, string graphQl)
 {
     GraphQl = graphQl;
     Url = url;
     await Task.FromResult(false);
 }
コード例 #4
0
 public MessageLoggingClient(IGraphQlServer server, GraphQlServerUri uri)
 {
     this.server = server;
     this.uri = uri;
 }
コード例 #5
0
 public MessageLoggingClient(IGraphQlServer server, GraphQlServerUri uri)
 {
     this.server = server;
     this.uri    = uri;
 }