Exemplo n.º 1
0
        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());
        }
Exemplo n.º 2
0
        /// <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);
        }