From 3fb1c1aca58818c69f66eff0f0f34569146d8bcf Mon Sep 17 00:00:00 2001 From: Sumit Ghosh Date: Sun, 7 Nov 2021 17:39:17 +0530 Subject: [PATCH] Updated Program class --- src/Services/Basket/Basket.API/Program.cs | 2 +- src/Services/Catalog/Catalog.API/Program.cs | 2 +- src/Services/Ordering/Ordering.API/Program.cs | 2 +- src/Services/Ordering/Ordering.SignalrHub/Program.cs | 2 +- src/Services/Payment/Payment.API/Program.cs | 2 +- src/Web/WebMVC/Program.cs | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Services/Basket/Basket.API/Program.cs b/src/Services/Basket/Basket.API/Program.cs index ce09dfce1..fd57afc82 100644 --- a/src/Services/Basket/Basket.API/Program.cs +++ b/src/Services/Basket/Basket.API/Program.cs @@ -93,7 +93,7 @@ IConfiguration GetConfiguration() return (port, grpcPort); } -public class Program +public partial class Program { public static string Namespace = typeof(Startup).Namespace; diff --git a/src/Services/Catalog/Catalog.API/Program.cs b/src/Services/Catalog/Catalog.API/Program.cs index 33172aea9..e5ef82aff 100644 --- a/src/Services/Catalog/Catalog.API/Program.cs +++ b/src/Services/Catalog/Catalog.API/Program.cs @@ -99,7 +99,7 @@ IConfiguration GetConfiguration() return builder.Build(); } -public static class Program +public partial class Program { public static string Namespace = typeof(Startup).Namespace; public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1); diff --git a/src/Services/Ordering/Ordering.API/Program.cs b/src/Services/Ordering/Ordering.API/Program.cs index 0d4c00677..bc5223a24 100644 --- a/src/Services/Ordering/Ordering.API/Program.cs +++ b/src/Services/Ordering/Ordering.API/Program.cs @@ -101,7 +101,7 @@ IConfiguration GetConfiguration() return (port, grpcPort); } -public class Program +public partial class Program { public static string Namespace = typeof(Startup).Namespace; diff --git a/src/Services/Ordering/Ordering.SignalrHub/Program.cs b/src/Services/Ordering/Ordering.SignalrHub/Program.cs index e472539fd..b2ee22ff2 100644 --- a/src/Services/Ordering/Ordering.SignalrHub/Program.cs +++ b/src/Services/Ordering/Ordering.SignalrHub/Program.cs @@ -56,7 +56,7 @@ static IConfiguration GetConfiguration() return builder.Build(); } -public class Program +public partial class Program { public static string Namespace = typeof(Startup).Namespace; public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1); diff --git a/src/Services/Payment/Payment.API/Program.cs b/src/Services/Payment/Payment.API/Program.cs index a369170c1..6211f5d2f 100644 --- a/src/Services/Payment/Payment.API/Program.cs +++ b/src/Services/Payment/Payment.API/Program.cs @@ -68,7 +68,7 @@ IConfiguration GetConfiguration() return builder.Build(); } -public class Program +public partial class Program { public static string Namespace = typeof(Startup).Namespace; public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1); diff --git a/src/Web/WebMVC/Program.cs b/src/Web/WebMVC/Program.cs index cf02fb5b3..b5aad7856 100644 --- a/src/Web/WebMVC/Program.cs +++ b/src/Web/WebMVC/Program.cs @@ -61,7 +61,7 @@ IConfiguration GetConfiguration() } -public class Program +public partial class Program { private static readonly string _namespace = typeof(Startup).Namespace; public static readonly string AppName = _namespace.Substring(_namespace.LastIndexOf('.', _namespace.LastIndexOf('.') - 1) + 1);