/// <summary> /// Withes this instance. /// </summary> /// <returns></returns> public static ConfigurationHelper With() { InstallSerializers.Install(); var instance = new ConfigurationHelper(new DefaultConfigurationRepository()); instance.DefaultBuilder(); return(instance); }
/// <summary> /// Withes the specified file config path. /// </summary> /// <param name="fileConfigPath">The file config path.</param> /// <returns></returns> public static ConfigurationHelper With(string fileConfigPath) { InstallSerializers.Install(); LoggerManager.Instance.Debug(string.Format("Configuracion con el fichero: {0}", fileConfigPath)); var instance = new ConfigurationHelper(new FileConfigurationRepository(fileConfigPath)); instance.DefaultBuilder(); return(instance); }