protected virtual void OnBeforeQuery(BeforeQueryEventArgs e)
        {
            EventHandler <BeforeQueryEventArgs> handler = BeforeQuery;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Exemple #2
0
 private void OnBeforeQueryEvent(object sender, BeforeQueryEventArgs args)
 {
     args.QueryCustomization.WaitForNonStaleResults(TimeSpan.FromSeconds(30));
 }
Exemple #3
0
 private void OnBeforeQueryEvent(object sender, BeforeQueryEventArgs args)
 {
     args.QueryCustomization.NoCaching();
 }
Exemple #4
0
 protected Task OnBeforeQuery(object sender, BeforeQueryEventArgs <Parent> args)
 {
     args.Query.Discriminator("parent");
     return(Task.CompletedTask);
 }
 private void DocumentStore_OnBeforeQuery(object sender, BeforeQueryEventArgs e)
 {
     e.QueryCustomization.WaitForNonStaleResults();
 }