protected virtual void OnBeforeQuery(BeforeQueryEventArgs e) { EventHandler <BeforeQueryEventArgs> handler = BeforeQuery; if (handler != null) { handler(this, e); } }
private void OnBeforeQueryEvent(object sender, BeforeQueryEventArgs args) { args.QueryCustomization.WaitForNonStaleResults(TimeSpan.FromSeconds(30)); }
private void OnBeforeQueryEvent(object sender, BeforeQueryEventArgs args) { args.QueryCustomization.NoCaching(); }
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(); }