public void QueryPlanCacheMissLogEntry() { var entry = new QueryPlanCacheMissLogEntry <GraphSchema>("abc123"); Assert.AreEqual(LogEventIds.QueryCacheMiss.Id, entry.EventId); Assert.AreEqual("abc123", entry.QueryPlanHashCode); Assert.AreEqual(typeof(GraphSchema).FriendlyName(true), entry.SchemaTypeName); Assert.IsNotNull(entry.ToString()); }
/// <inheritdoc /> public virtual void QueryPlanCacheFetchMiss <TSchema>(string queryHash) where TSchema : class, ISchema { if (!this.IsEnabled(LogLevel.Trace)) { return; } var entry = new QueryPlanCacheMissLogEntry <TSchema>(queryHash); this.LogEvent(LogLevel.Trace, entry); }