• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Sholtee / proxygen / 1032

26 Apr 2025 04:30AM UTC coverage: 92.643% (+1.0%) from 91.629%
1032

push

appveyor

Sholtee
+1 test case

4810 of 5192 relevant lines covered (92.64%)

0.93 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/SRC/Private/Extensions/StreamWriterExtensions.cs
1
/********************************************************************************
2
* StreamWriterExtensions.cs                                                     *
3
*                                                                               *
4
* Author: Denes Solti                                                           *
5
********************************************************************************/
6
using System;
7
using System.Diagnostics.CodeAnalysis;
8
using System.IO;
9
using System.Threading;
10

11
namespace Solti.Utils.Proxy.Internals
12
{
13
    internal static class StreamWriterExtensions
14
    {
15
        [SuppressMessage("Usage", "CA1801:Review unused parameters", Justification = "The 'cancellation' is supported in NETSTANDARD2_1+ only")]
16
        public static void Write(this StreamWriter self, string str, CancellationToken cancellation) =>
17
#if NETSTANDARD2_0
18
            self.Write(str);
19
#else
20
            self.WriteAsync(str.AsMemory(), cancellation).Wait(CancellationToken.None);
×
21
#endif
22
    }
23
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc