Updated Program class
This commit is contained in:
parent
4a173280aa
commit
3fb1c1aca5
@ -93,7 +93,7 @@ IConfiguration GetConfiguration()
|
|||||||
return (port, grpcPort);
|
return (port, grpcPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Program
|
public partial class Program
|
||||||
{
|
{
|
||||||
|
|
||||||
public static string Namespace = typeof(Startup).Namespace;
|
public static string Namespace = typeof(Startup).Namespace;
|
||||||
|
@ -99,7 +99,7 @@ IConfiguration GetConfiguration()
|
|||||||
return builder.Build();
|
return builder.Build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Program
|
public partial class Program
|
||||||
{
|
{
|
||||||
public static string Namespace = typeof(Startup).Namespace;
|
public static string Namespace = typeof(Startup).Namespace;
|
||||||
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1);
|
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1);
|
||||||
|
@ -101,7 +101,7 @@ IConfiguration GetConfiguration()
|
|||||||
return (port, grpcPort);
|
return (port, grpcPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Program
|
public partial class Program
|
||||||
{
|
{
|
||||||
|
|
||||||
public static string Namespace = typeof(Startup).Namespace;
|
public static string Namespace = typeof(Startup).Namespace;
|
||||||
|
@ -56,7 +56,7 @@ static IConfiguration GetConfiguration()
|
|||||||
return builder.Build();
|
return builder.Build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Program
|
public partial class Program
|
||||||
{
|
{
|
||||||
public static string Namespace = typeof(Startup).Namespace;
|
public static string Namespace = typeof(Startup).Namespace;
|
||||||
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1);
|
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1);
|
||||||
|
@ -68,7 +68,7 @@ IConfiguration GetConfiguration()
|
|||||||
return builder.Build();
|
return builder.Build();
|
||||||
}
|
}
|
||||||
|
|
||||||
public class Program
|
public partial class Program
|
||||||
{
|
{
|
||||||
public static string Namespace = typeof(Startup).Namespace;
|
public static string Namespace = typeof(Startup).Namespace;
|
||||||
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1);
|
public static string AppName = Namespace.Substring(Namespace.LastIndexOf('.', Namespace.LastIndexOf('.') - 1) + 1);
|
||||||
|
@ -61,7 +61,7 @@ IConfiguration GetConfiguration()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public class Program
|
public partial class Program
|
||||||
{
|
{
|
||||||
private static readonly string _namespace = typeof(Startup).Namespace;
|
private static readonly string _namespace = typeof(Startup).Namespace;
|
||||||
public static readonly string AppName = _namespace.Substring(_namespace.LastIndexOf('.', _namespace.LastIndexOf('.') - 1) + 1);
|
public static readonly string AppName = _namespace.Substring(_namespace.LastIndexOf('.', _namespace.LastIndexOf('.') - 1) + 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user