public void Dispose() { ConsoleSettings.SetForeGroundColour(ConsoleColor.Green, false); if (GenerateSourceMap) { _output.TrivialWriteLine(string.Format(ArtifactsFactory.SrcMapRefLine, ArtifactsFactory.ConsoleJs)); } ConsoleSettings.SetForeGroundColour(ConsoleColor.Cyan, false); if (WriteWaterMark) { _output.TrivialWriteLine(WaterMark); } ConsoleSettings.SetForeGroundColour(); _output.Dispose(); }
public void Dispose() { if (!_disposed) { if (GenerateSourceMap) { _output.TrivialWriteLine(string.Format(ArtifactsFactory.SrcMapRefLine, Path.GetFileName(_destPath))); } if (WriteWaterMark) { this._output.TrivialWriteLine(WaterMark); } _output.Dispose(); _disposed = true; GC.SuppressFinalize(this); } }