Exemple #1
0
 private async Task <HttpResponseMessage> CreateResponse(string itemName, BadgeType type, string subject, string color, string ext)
 {
     //Loggly.SendAccess(itemName, type, subject, color, ext).FireAndForget();
     //var status = await VsMarketplace.Load(itemName, type);
     //var res = Request.CreateResponse(HttpStatusCode.OK);
     //res.Content = new ByteArrayContent(await ShieldsIo.LoadSvg(subject, status, color, Request.RequestUri.Query, ext));
     //res.Content.Headers.ContentType = new MediaTypeHeaderValue(mimeMap[ext]);
     //res.Headers.CacheControl = new CacheControlHeaderValue()
     //{
     //    NoCache = true
     //};
     //return res;
     return(await NewService.Relay(Request.RequestUri));
 }