Esempio n. 1
0
 public static async Task RespondServerIndexAsync(
     this INugetServerProvider provider,
     HttpContext context)
 {
     var serverIndex = new ServerIndexModel(
         provider.ParseResource(context))
     {
         Version = provider
                   .NugetServerOptions
                   .ApiVersion
                   .ToFullString(),
         Context = ServerIndexContext.Default
     };
     await provider
     .WriteJsonResponseAsync(
         context, serverIndex, provider
         .CreateJsonSerializerForServiceIndex());
 }