Ejemplo n.º 1
0
            public void Dispose()
            {
                _queryTimer.Stop();

                // when the request is finished it will dispose the activity scope and
                // this is when we print the parsed query.
                var variables   = _context.Variables;
                var queryString = _context.Document;

                string htmlText;

                using (MiniProfiler.Current.Ignore()) // this does not seem to ignore as documented
                {
                    htmlText = CreateHtmlFromDocument(queryString, variables, _queryTimer);
                }

                _miniProfiler?.AddCustomLink(htmlText, "#");
                _miniProfiler?.Stop();
            }