public static async Task <StorageFile> SaveHostedConfigAsync(HostedConfig config) { var file = await IoUtils.SaveUniqueObjAsync(config.Path, config, await HostedConfigFolderTask); config.Path = file.Path; return(file); }
public static async Task <StorageFile> SaveServerAsync(IAdapterConfig config) { config.Name = string.IsNullOrEmpty(config.Name) ? $"New {config.AdapterType} Config" : config.Name; var file = await IoUtils.SaveUniqueObjAsync(config.Path, config, await AdapterConfigFolderTask); config.Path = file.Path; return(file); }