New Angular based web version #1
@@ -29,10 +29,13 @@ public static class DependencyInjectionExtensions
|
|||||||
|
|
||||||
private static IServiceCollection AddMiscellaneousServices(this IServiceCollection services)
|
private static IServiceCollection AddMiscellaneousServices(this IServiceCollection services)
|
||||||
{
|
{
|
||||||
var assemblyName = Assembly.GetExecutingAssembly()
|
services.AddSingleton(sp =>
|
||||||
|
{
|
||||||
|
var assemblyName = Assembly.GetExecutingAssembly()
|
||||||
.GetName()
|
.GetName()
|
||||||
.Name ?? "Vegasco.Server.Api";
|
.Name ?? "Vegasco.Server.Api";
|
||||||
services.AddSingleton(new ActivitySource(assemblyName));
|
return new ActivitySource(assemblyName);
|
||||||
|
});
|
||||||
|
|
||||||
services.AddResponseCompression();
|
services.AddResponseCompression();
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ public static class Constants
|
|||||||
{
|
{
|
||||||
public static class Projects
|
public static class Projects
|
||||||
{
|
{
|
||||||
public const string Api = "Vegasco_Server_Api";
|
public const string Api = "Vegasco.Server.Api";
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class Database
|
public static class Database
|
||||||
|
|||||||
Reference in New Issue
Block a user