Esempio n. 1
0
 public IGremlinQueryEnvironment Transform(IGremlinQueryEnvironment environment)
 {
     return(environment
            .UseCosmosDb(builder =>
     {
         return builder
         .At(
             _configuration.GetRequiredConfiguration("Uri"),
             _configuration.GetRequiredConfiguration("Database"),
             _configuration.GetRequiredConfiguration("Graph"))
         .AuthenticateBy(_configuration.GetRequiredConfiguration("AuthKey"))
         .ConfigureWebSocket(webSocketBuilder => webSocketBuilder
                             .Configure(_configuration));
     }));
 }