public static IConfigurableGremlinQuerySource WithExecutor(this IConfigurableGremlinQuerySource source, IGremlinQueryExecutor <GroovySerializedGremlinQuery, JToken> executor) { return(source.UseExecutionPipeline(conf => conf .UseGroovySerialization() .UseExecutor(executor) .UseGraphsonDeserialization())); }
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.UseExecutionPipeline(conf => conf .UseGroovySerialization() .AddWebSocketExecutor(hostname, port, enableSsl, username, password, graphsonVersion, additionalGraphsonSerializers, additionalGraphsonDeserializers, source.Logger) .UseGraphsonDeserialization())); }