private IImpatientQueryProcessor GetQueryProcessor() { if (queryProcessor == null) { queryProcessor = ((IInfrastructure <IServiceProvider>)currentDbContext.Context) .Instance.GetRequiredService <IImpatientQueryProcessor>(); } return(queryProcessor); }
public ImpatientQueryProvider(IImpatientQueryProcessor queryProcessor) { this.queryProcessor = queryProcessor ?? throw new ArgumentNullException(nameof(queryProcessor)); }