public static void DNURestore(this ICakeContext context, FilePath filePath, DNURestoreSettings settings) { if (context == null) { throw new ArgumentNullException("context"); } if (settings == null) { settings = new DNURestoreSettings(); } var restorer = new DNURestorer(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); restorer.Restore(filePath, settings); }
public static void DNURestore(this ICakeContext context, DNURestoreSettings settings) { context.DNURestore(null, settings); }