Exemplo n.º 1
0
 private GraphQLHttpClient GetGraphQLClient(string endpoint, bool requestsViaWebsocket = false)
 {
     if (Serializer == null)
     {
         throw new InvalidOperationException("JSON serializer not configured");
     }
     return(WebHostHelpers.GetGraphQLClient(Port, endpoint, requestsViaWebsocket, Serializer));
 }
Exemplo n.º 2
0
 public async Task CreateServer()
 {
     if (Server != null)
     {
         return;
     }
     Server = await WebHostHelpers.CreateServer(Port);
 }
Exemplo n.º 3
0
 private GraphQLHttpClient GetGraphQLClient(string endpoint, bool requestsViaWebsocket = false) => WebHostHelpers.GetGraphQLClient(Port, endpoint, requestsViaWebsocket);