From 91a7f65113e0a4656073365a0a1ab35d71c91dbc Mon Sep 17 00:00:00 2001 From: Reiley Yang Date: Sat, 25 Mar 2023 17:37:26 -0700 Subject: [PATCH] Cart Service - minor cleanup (#801) * Cart Service - minor cleanup * fix file encoding Signed-off-by: Pierre Tessier --------- Signed-off-by: Pierre Tessier Co-authored-by: Pierre Tessier --- src/cartservice/NuGet.config | 8 ++++++++ src/cartservice/src/Program.cs | 17 ++++++++++------- 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 src/cartservice/NuGet.config diff --git a/src/cartservice/NuGet.config b/src/cartservice/NuGet.config new file mode 100644 index 0000000000..adcb2a925f --- /dev/null +++ b/src/cartservice/NuGet.config @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/src/cartservice/src/Program.cs b/src/cartservice/src/Program.cs index 3006cb6717..19c433f9b5 100644 --- a/src/cartservice/src/Program.cs +++ b/src/cartservice/src/Program.cs @@ -12,19 +12,22 @@ // See the License for the specific language governing permissions and // limitations under the License. -using Microsoft.AspNetCore.Hosting; -using Microsoft.Extensions.Hosting; -using Microsoft.AspNetCore.Builder; -using cartservice.cartstore; using System; + +using cartservice.cartstore; +using cartservice.services; + +using Microsoft.AspNetCore.Builder; +using Microsoft.AspNetCore.Hosting; +using Microsoft.AspNetCore.Http; using Microsoft.Extensions.DependencyInjection; using Microsoft.Extensions.Diagnostics.HealthChecks; +using Microsoft.Extensions.Hosting; + +using OpenTelemetry.Extensions.Docker.Resources; using OpenTelemetry.Metrics; using OpenTelemetry.Resources; -using OpenTelemetry.Extensions.Docker.Resources; using OpenTelemetry.Trace; -using cartservice.services; -using Microsoft.AspNetCore.Http; var builder = WebApplication.CreateBuilder(args); string redisAddress = builder.Configuration["REDIS_ADDR"];