public static IGenericServiceContainer AddSettingsContainer <TService, TImplementation>(this IGenericServiceContainer services)
     where TService : class, ISettingsContainer
     where TImplementation : class, TService
 {
     services.RegisterSingleton <TImplementation>();
     services.RegisterSingleton <TService>(sp => sp.GetService <TImplementation>());
     services.AddSettingsContainer <TImplementation>();
     return(services);
 }