|
|
@ -1,14 +1,18 @@
|
|
|
|
using Connected.Configuration.Authentication;
|
|
|
|
using Connected.Configuration.Authentication;
|
|
|
|
using Connected.Configuration.Endpoints;
|
|
|
|
using Connected.Configuration.Endpoints;
|
|
|
|
|
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Connected.Configuration;
|
|
|
|
namespace Connected.Configuration;
|
|
|
|
|
|
|
|
|
|
|
|
internal class ConfigurationService : IConfigurationService
|
|
|
|
internal class ConfigurationService : IConfigurationService
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public ConfigurationService()
|
|
|
|
public ConfigurationService(IConfiguration configuration)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Endpoint = new EndpointConfiguration();
|
|
|
|
Endpoint = new EndpointConfiguration();
|
|
|
|
|
|
|
|
configuration.Bind("endpoint", Endpoint);
|
|
|
|
|
|
|
|
|
|
|
|
Storage = new StorageConfiguration();
|
|
|
|
Storage = new StorageConfiguration();
|
|
|
|
|
|
|
|
configuration.Bind("storage", Storage);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public IEndpointConfiguration Endpoint { get; }
|
|
|
|
public IEndpointConfiguration Endpoint { get; }
|
|
|
|