Swamy/01jan2021-small-refactoring (#1570)
* Update Startup.cs * Removed commented code * Update UrlsConfig.cs * Small Refactoring * Removed Commented Code * Small Refactoring
This commit is contained in:
parent
600d0aa456
commit
6f8f247fe9
@ -15,15 +15,6 @@ namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator.Services
|
|||||||
|
|
||||||
var channel = GrpcChannel.ForAddress(urlGrpc);
|
var channel = GrpcChannel.ForAddress(urlGrpc);
|
||||||
|
|
||||||
/*
|
|
||||||
using var httpClientHandler = new HttpClientHandler
|
|
||||||
{
|
|
||||||
ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => { return true; }
|
|
||||||
};
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
Log.Information("Creating grpc client base address urlGrpc ={@urlGrpc}, BaseAddress={@BaseAddress} ", urlGrpc, channel.Target);
|
Log.Information("Creating grpc client base address urlGrpc ={@urlGrpc}, BaseAddress={@BaseAddress} ", urlGrpc, channel.Target);
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -47,13 +38,6 @@ namespace Microsoft.eShopOnContainers.Mobile.Shopping.HttpAggregator.Services
|
|||||||
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
|
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
|
||||||
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2Support", true);
|
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2Support", true);
|
||||||
|
|
||||||
/*
|
|
||||||
using var httpClientHandler = new HttpClientHandler
|
|
||||||
{
|
|
||||||
ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => { return true; }
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
var channel = GrpcChannel.ForAddress(urlGrpc);
|
var channel = GrpcChannel.ForAddress(urlGrpc);
|
||||||
|
|
||||||
Log.Debug("Creating grpc client base address {@httpClient.BaseAddress} ", channel.Target);
|
Log.Debug("Creating grpc client base address {@httpClient.BaseAddress} ", channel.Target);
|
||||||
|
@ -15,15 +15,6 @@ namespace Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator.Services
|
|||||||
|
|
||||||
var channel = GrpcChannel.ForAddress(urlGrpc);
|
var channel = GrpcChannel.ForAddress(urlGrpc);
|
||||||
|
|
||||||
/*
|
|
||||||
using var httpClientHandler = new HttpClientHandler
|
|
||||||
{
|
|
||||||
ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => { return true; }
|
|
||||||
};
|
|
||||||
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
|
||||||
Log.Information("Creating grpc client base address urlGrpc ={@urlGrpc}, BaseAddress={@BaseAddress} ", urlGrpc, channel.Target);
|
Log.Information("Creating grpc client base address urlGrpc ={@urlGrpc}, BaseAddress={@BaseAddress} ", urlGrpc, channel.Target);
|
||||||
|
|
||||||
try
|
try
|
||||||
@ -49,13 +40,6 @@ namespace Microsoft.eShopOnContainers.Web.Shopping.HttpAggregator.Services
|
|||||||
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
|
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2UnencryptedSupport", true);
|
||||||
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2Support", true);
|
AppContext.SetSwitch("System.Net.Http.SocketsHttpHandler.Http2Support", true);
|
||||||
|
|
||||||
/*
|
|
||||||
using var httpClientHandler = new HttpClientHandler
|
|
||||||
{
|
|
||||||
ServerCertificateCustomValidationCallback = (message, cert, chain, errors) => { return true; }
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
var channel = GrpcChannel.ForAddress(urlGrpc);
|
var channel = GrpcChannel.ForAddress(urlGrpc);
|
||||||
|
|
||||||
Log.Debug("Creating grpc client base address {@httpClient.BaseAddress} ", channel.Target);
|
Log.Debug("Creating grpc client base address {@httpClient.BaseAddress} ", channel.Target);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user