Fix errors
This commit is contained in:
parent
24e1d81465
commit
628615efe4
@ -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)
|
||||
|
@ -7,6 +7,6 @@
|
||||
"grpcBasket": "http://localhost:5580",
|
||||
"grpcCatalog": "http://localhost:81",
|
||||
"grpcOrdering": "http://localhost:5581",
|
||||
"coupon": "http://localhost:55106"
|
||||
"coupon": "http://localhost:5106"
|
||||
}
|
||||
}
|
||||
|
@ -20,9 +20,9 @@ public class OrderQueries
|
||||
@"select o.[Id] as ordernumber,o.OrderDate as date, o.Description as description,
|
||||
o.Address_City as city, o.Address_Country as country, o.Address_State as state, o.Address_Street as street, o.Address_ZipCode as zipcode,
|
||||
os.Name as status,
|
||||
oi.ProductName as productname, oi.Units as units, oi.UnitPrice as unitprice, oi.PictureUrl as pictureurl
|
||||
o.DiscountCode as coupon
|
||||
o.Discount as discount,
|
||||
oi.ProductName as productname, oi.Units as units, oi.UnitPrice as unitprice, oi.PictureUrl as pictureurl,
|
||||
o.DiscountCode as coupon,
|
||||
o.Discount as discount
|
||||
FROM ordering.Orders o
|
||||
LEFT JOIN ordering.Orderitems oi ON o.Id = oi.orderid
|
||||
LEFT JOIN ordering.orderstatus os on o.OrderStatusId = os.Id
|
||||
|
@ -189,7 +189,7 @@ services:
|
||||
- IdentityUrlExternal=http://${ESHOP_EXTERNAL_DNS_NAME_OR_IP}:5105
|
||||
- UseLoadTest=${USE_LOADTEST:-False}
|
||||
- PORT=80
|
||||
- PATH_BASE=/catalog-api
|
||||
- PATH_BASE=/coupon-api
|
||||
- ConnectionString=mongodb://nosqldata:27017
|
||||
ports:
|
||||
- "5106:80"
|
||||
@ -222,6 +222,7 @@ services:
|
||||
- urls__grpcOrdering=http://ordering-api:81
|
||||
- CatalogUrlHC=http://catalog-api/hc
|
||||
- OrderingUrlHC=http://ordering-api/hc
|
||||
- CouponUrlHC=http://coupon-api/hc
|
||||
- IdentityUrlHC=http://identity-api/hc
|
||||
- BasketUrlHC=http://basket-api/hc
|
||||
- PaymentUrlHC=http://payment-api/hc
|
||||
@ -242,6 +243,7 @@ services:
|
||||
- urls__grpcOrdering=http://ordering-api:81
|
||||
- CatalogUrlHC=http://catalog-api/hc
|
||||
- OrderingUrlHC=http://ordering-api/hc
|
||||
- CouponUrlHC=http://coupon-api/hc
|
||||
- IdentityUrlHC=http://identity-api/hc
|
||||
- BasketUrlHC=http://basket-api/hc
|
||||
- PaymentUrlHC=http://payment-api/hc
|
||||
|
@ -119,6 +119,7 @@ services:
|
||||
- IdentityUrlHC=http://identity-api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
|
||||
- BasketUrlHC=http://basket-api/hc
|
||||
- PaymentUrlHC=http://payment-api/hc
|
||||
- CouponUrlHC=http://coupon-api/hc
|
||||
- UseCustomizationData=True
|
||||
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||
@ -136,6 +137,7 @@ services:
|
||||
- IdentityUrlHC=http://identity-api/hc #Local: Use ${ESHOP_PROD_EXTERNAL_DNS_NAME_OR_IP}, if using external IP or DNS name from browser.
|
||||
- BasketUrlHC=http://basket-api/hc
|
||||
- PaymentUrlHC=http://payment-api/hc
|
||||
- CouponUrlHC=http://coupon-api/hc
|
||||
- UseCustomizationData=True
|
||||
- ApplicationInsights__InstrumentationKey=${INSTRUMENTATION_KEY}
|
||||
- OrchestratorType=${ORCHESTRATOR_TYPE}
|
||||
|
Loading…
x
Reference in New Issue
Block a user