示例#1
0
    public static void ImportComponentSettings(this IConfigurationStore store, string environment, string component, string path)
    {
        if (isBlank(environment) || isBlank(component))
        {
            throw new ArgumentException("Both environment and component must be specified");
        }

        var settings = JsonServices.FromObjectFile <ComponentConfigurationSet>(path).Settings;

        store.SaveComponentSettings(settings);
    }