|
|
@ -20,14 +20,15 @@ public class Startup |
|
|
|
.AddUrlGroup(new Uri(Configuration["OrderingUrlHC"]), name: "orderingapi-check", tags: new string[] { "orderingapi" }) |
|
|
|
.AddUrlGroup(new Uri(Configuration["BasketUrlHC"]), name: "basketapi-check", tags: new string[] { "basketapi" }) |
|
|
|
.AddUrlGroup(new Uri(Configuration["IdentityUrlHC"]), name: "identityapi-check", tags: new string[] { "identityapi" }) |
|
|
|
.AddUrlGroup(new Uri(Configuration["PaymentUrlHC"]), name: "paymentapi-check", tags: new string[] { "paymentapi" }); |
|
|
|
.AddUrlGroup(new Uri(Configuration["PaymentUrlHC"]), name: "paymentapi-check", tags: new string[] { "paymentapi" }) |
|
|
|
.AddUrlGroup(new Uri(Configuration["CouponUrlHC"]), name: "couponapi-check", tags: new string[] { "couponapi" }); |
|
|
|
|
|
|
|
// HC dependency is configured this way to save one build step on ACR
|
|
|
|
var couponHealthEndpoint = Configuration["CouponUrlHC"]; |
|
|
|
if (!string.IsNullOrWhiteSpace(couponHealthEndpoint)) |
|
|
|
{ |
|
|
|
healthCheckBuilder.AddUrlGroup(new Uri(couponHealthEndpoint), name: "couponapi-check", tags: new string[] { "couponapi" }); |
|
|
|
} |
|
|
|
//var couponHealthEndpoint = Configuration["CouponUrlHC"];
|
|
|
|
//if (!string.IsNullOrWhiteSpace(couponHealthEndpoint))
|
|
|
|
//{
|
|
|
|
// healthCheckBuilder.AddUrlGroup(new Uri(couponHealthEndpoint), name: "couponapi-check", tags: new string[] { "couponapi" });
|
|
|
|
//}
|
|
|
|
|
|
|
|
services.AddCustomMvc(Configuration) |
|
|
|
.AddCustomAuthentication(Configuration) |
|
|
|