public Handler(IOptions <Neo4JSettings> neo4jSettingsOptions) { _neo4jSettings = neo4jSettingsOptions.Value; _client = new GraphClient(new Uri(_neo4jSettings.Server), _neo4jSettings.UserName, _neo4jSettings.Password); }
public BookRelationalRepository(IOptions <Neo4JSettings> neo4j) { _neo4j = neo4j.Value; _client = new BoltGraphClient(_neo4j.Uri, _neo4j.User, _neo4j.Password); }
public Neo4JDriver(IOptions <Neo4JSettings> neo4jSettingsOptions) { _neo4jSettings = neo4jSettingsOptions.Value; Driver = GraphDatabase.Driver(_neo4jSettings.Server, AuthTokens.Basic(_neo4jSettings.UserName, _neo4jSettings.Password)); }