Enhancing telemetry in Seq and fixes namespaces

This commit is contained in:
Janus C. H. Knudsen 2025-02-20 00:23:13 +01:00
parent 5568007237
commit 9f4996bc8f
65 changed files with 1122 additions and 1139 deletions

View file

@ -4,7 +4,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Core.Configurations.Common
namespace PlanTempus.Core.Configurations.Common
{
using Newtonsoft.Json.Linq;

View file

@ -1,5 +1,5 @@
using Newtonsoft.Json.Linq;
namespace Core.Configurations
namespace PlanTempus.Core.Configurations
{
public interface IConfigurationBuilder
{
@ -133,7 +133,7 @@ namespace Core.Configurations
public interface IConfigurationProvider
{
void Build();
Newtonsoft.Json.Linq.JObject Configuration();
JObject Configuration();
}
public class ConfigurationSection : IConfigurationSection
@ -148,6 +148,6 @@ namespace Core.Configurations
{
string Path { get; }
string Key { get; }
Newtonsoft.Json.Linq.JToken Value { get; set; }
JToken Value { get; set; }
}
}

View file

@ -1,4 +1,4 @@
namespace Core.Configurations
namespace PlanTempus.Core.Configurations
{
/// <summary>
/// Marker interface for application configurations that should be automatically registered in the DI container.

View file

@ -1,4 +1,4 @@
namespace Core.Configurations
namespace PlanTempus.Core.Configurations
{
public interface IConfigurationRoot : IConfiguration { }

View file

@ -1,8 +1,9 @@
using Core.Exceptions;
using PlanTempus.Core.Exceptions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using PlanTempus.Core.Configurations;
namespace Core.Configurations.JsonConfigProvider
namespace PlanTempus.Core.Configurations.JsonConfigProvider
{
public static class JsonConfigExtension
{

View file

@ -1,4 +1,4 @@
namespace Core.Configurations.SmartConfigProvider;
namespace PlanTempus.Core.Configurations.SmartConfigProvider;
public class AppConfiguration
{
public long Id { get; set; }

View file

@ -1,4 +1,4 @@
namespace Core.Configurations.SmartConfigProvider;
namespace PlanTempus.Core.Configurations.SmartConfigProvider;
public interface IConfigurationRepository
{
string ConnectionString { get; set; }

View file

@ -1,7 +1,7 @@
using System.Data;
using Insight.Database;
namespace Core.Configurations.SmartConfigProvider.Repositories;
namespace PlanTempus.Core.Configurations.SmartConfigProvider.Repositories;
public class PostgresConfigurationRepository : IConfigurationRepository
{
private IDbConnection _connection;

View file

@ -1,4 +1,6 @@
namespace Core.Configurations.SmartConfigProvider
using PlanTempus.Core.Configurations;
namespace PlanTempus.Core.Configurations.SmartConfigProvider
{
/// <summary>
/// Extension methods for adding smart configuration providers to IConfigurationBuilder.

View file

@ -1,4 +1,4 @@
namespace Core.Configurations.SmartConfigProvider
namespace PlanTempus.Core.Configurations.SmartConfigProvider
{
/// <summary>
/// Configuration options for setting up smart configuration providers.

View file

@ -1,9 +1,9 @@
using Core.Configurations.JsonConfigProvider;
using Core.Exceptions;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using PlanTempus.Core.Configurations.JsonConfigProvider;
using PlanTempus.Core.Exceptions;
namespace Core.Configurations.SmartConfigProvider
namespace PlanTempus.Core.Configurations.SmartConfigProvider
{
/// <summary>
/// Configuration provider that loads configuration from a smart configuration source (e.g. database).