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();
 }
        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();
        }
 public async Task SendAsync(GraphQlServerUri url, string graphQl)
 {
     GraphQl = graphQl;
     Url = url;
     await Task.FromResult(false);
 }
 public MessageLoggingClient(IGraphQlServer server, GraphQlServerUri uri)
 {
     this.server = server;
     this.uri = uri;
 }
Ejemplo n.º 5
0
 public MessageLoggingClient(IGraphQlServer server, GraphQlServerUri uri)
 {
     this.server = server;
     this.uri    = uri;
 }