public static async Task Execute(IOwinContext context, PackageSearcherManager SearcherManager)
 {
     Trace.TraceInformation("Diag");
     context.Response.Headers.Add("Pragma", new[] { "no-cache" });
     context.Response.Headers.Add("Cache-Control", new[] { "no-cache" });
     context.Response.Headers.Add("Expires", new[] { "0" });
     context.Response.ContentType = "application/json";
     await context.Response.WriteAsync(IndexAnalyzer.Analyze(SearcherManager));
 }
Example #2
0
        protected override async Task Execute(IOwinContext context)
        {
            Trace.TraceInformation("Diag");

            await WriteResponse(context, IndexAnalyzer.Analyze(SearcherManager));
        }
Example #3
0
        protected override async Task Execute(IOwinContext context)
        {
            Trace.TraceInformation("Fields");

            await WriteResponse(context, IndexAnalyzer.GetDistinctStoredFieldNames(SearcherManager));
        }