コード例 #1
0
 public GenericGraphQueryService(IGraphClusterBuilder graphClusterBuilder, GraphOptions graphOptions)
 {
     graphCluster      = graphClusterBuilder?.Build() ?? throw new ArgumentNullException(nameof(graphClusterBuilder));
     this.graphOptions = graphOptions;
 }
コード例 #2
0
 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));
 }