Esempio n. 1
0
        public static void Main(string[] args)
        {
            GraphQLServer server = new GraphQLServer();

            server.AddController(new CountryController());
            server.AddController(new PopulationController());
            server.Start();
        }
Esempio n. 2
0
 private static ClientContext DefaultClientContextFn(GraphQLServer x, HttpListenerRequest y) =>
 new ClientContext()
 {
     Authenticated = false, UserToken = ""
 };