public static void ExportComponentSettings(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 export = new ComponentConfigurationSet { Environment = environment, Component = component, Settings = store.GetComponentSettings(environment, component).ToList() }; JsonServices.ToObjectFile(export, path); }