Skip to content

Commit 798eb47

Browse files
edit: some Revision 2 changes
1 parent 5fff64c commit 798eb47

4 files changed

Lines changed: 47 additions & 31 deletions

File tree

assets/ascorbic_icon.png

135 KB
Loading

src/AridityTeam.Ascorbic/AridityTeam.Ascorbic.csproj

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,13 @@
3333

3434
<PropertyGroup>
3535
<PackageReleaseNotes>
36+
Revision 2 changes:
37+
- Modified: Overriden the "Dispose(bool)" method in MultiTextWriter
38+
- Modified: Changed MultiTextWriter's XML documentation
39+
- Modified: Made string format parameters in each Logger functions nullable
40+
- Modified: Changed the package icon to differentiate this library from Aridity Cereon
41+
42+
Revision 1 changes:
3643
- Addition: MultiTextWriter.Writers
3744
- Modified: Localized the default AridityTeam.Services.ServiceNotFoundException message
3845
- Modified: Fixed MultiTextWriter.Write(string, object?, object?) not passing the "arg1" parameter into it's writers

src/AridityTeam.Ascorbic/IO/MultiTextWriter.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
namespace AridityTeam.IO
3131
{
3232
/// <summary>
33-
/// A <seealso cref="TextWriter"/> that can write to all outputs.
33+
/// A <seealso cref="TextWriter"/> that can write to multiple outputs.
3434
/// </summary>
3535
public class MultiTextWriter : TextWriter
3636
{
@@ -395,5 +395,14 @@ public override void Close()
395395

396396
_writers.Clear();
397397
}
398+
399+
/// <inheritdoc/>
400+
protected override void Dispose(bool disposing)
401+
{
402+
foreach (var writer in _writers)
403+
writer.Dispose();
404+
405+
_writers.Clear();
406+
}
398407
}
399408
}

0 commit comments

Comments
 (0)