private IImpatientQueryProcessor GetQueryProcessor()
        {
            if (queryProcessor == null)
            {
                queryProcessor
                    = ((IInfrastructure <IServiceProvider>)currentDbContext.Context)
                      .Instance.GetRequiredService <IImpatientQueryProcessor>();
            }

            return(queryProcessor);
        }
Beispiel #2
0
 public ImpatientQueryProvider(IImpatientQueryProcessor queryProcessor)
 {
     this.queryProcessor = queryProcessor ?? throw new ArgumentNullException(nameof(queryProcessor));
 }