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