public GenericGraphQueryService(IGraphClusterBuilder graphClusterBuilder, GraphOptions graphOptions) { graphCluster = graphClusterBuilder?.Build() ?? throw new ArgumentNullException(nameof(graphClusterBuilder)); this.graphOptions = graphOptions; }
public Execute(IOptionsMonitor <ContentApiOptions> contentApiOptions, IGraphClusterBuilder graphClusterBuilder, IJsonFormatHelper jsonFormatHelper) { _contentApiOptions = contentApiOptions ?? throw new ArgumentNullException(nameof(contentApiOptions)); _graphCluster = graphClusterBuilder.Build() ?? throw new ArgumentNullException(nameof(graphClusterBuilder)); _jsonFormatHelper = jsonFormatHelper ?? throw new ArgumentNullException(nameof(jsonFormatHelper)); }