public static void DotNetCoreBuildServerShutdown(this ICakeContext context, DotNetCoreBuildServerSettings settings) { if (context == null) { throw new ArgumentNullException(nameof(context)); } var buildServer = new DotNetCoreBuildServer(context.FileSystem, context.Environment, context.ProcessRunner, context.Tools); buildServer.Shutdown(settings ?? new DotNetCoreBuildServerSettings()); }
protected override void RunTool() { var tool = new DotNetCoreBuildServer(FileSystem, Environment, ProcessRunner, Tools); tool.Shutdown(Settings); }