예제 #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));
 }
예제 #2
0
 public async Task CreateServer()
 {
     if (Server != null)
     {
         return;
     }
     Server = await WebHostHelpers.CreateServer(Port);
 }
예제 #3
0
 private GraphQLHttpClient GetGraphQLClient(string endpoint, bool requestsViaWebsocket = false) => WebHostHelpers.GetGraphQLClient(Port, endpoint, requestsViaWebsocket);