public static IConfigurableGremlinQuerySource WithExecutor(this IConfigurableGremlinQuerySource source, IGremlinQueryExecutor executor)
 {
     return(source.ConfigureExecutionPipeline(pipeline => pipeline
                                              .UseSerializer(GremlinQuerySerializer.Groovy)
                                              .UseExecutor(executor)
                                              .UseDeserializer(GremlinQueryExecutionResultDeserializer.Graphson)));
 }
Example #2
0
 public static IConfigurableGremlinQuerySource UseCosmosDb(this IConfigurableGremlinQuerySource source, string hostname, string database, string graphName, string authKey, int port = 443)
 {
     return(source
            .ConfigureExecutionPipeline(pipeline => pipeline
                                        .UseCosmosDbSerializer()
                                        .UseCosmosDbExecutor(hostname, database, graphName, authKey, source.Logger, port)
                                        .UseCosmosDbDeserializer()));
 }
Example #3
0
 public static IConfigurableGremlinQuerySource UseWebSocket(
     this IConfigurableGremlinQuerySource source,
     string hostname,
     GraphsonVersion graphsonVersion,
     int port        = 8182,
     bool enableSsl  = false,
     string username = null,
     string password = null,
     IReadOnlyDictionary <Type, IGraphSONSerializer> additionalGraphsonSerializers       = null,
     IReadOnlyDictionary <string, IGraphSONDeserializer> additionalGraphsonDeserializers = null)
 {
     return(source.ConfigureExecutionPipeline(conf => conf
                                              .UseSerializer(GremlinQuerySerializer.Groovy)
                                              .UseWebSocketExecutor(hostname, port, enableSsl, username, password, graphsonVersion, additionalGraphsonSerializers, additionalGraphsonDeserializers, source.Logger)
                                              .UseDeserializer(GremlinQueryExecutionResultDeserializer.Graphson)));
 }