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

Sholtee / proxygen / 1046

27 Apr 2025 01:21PM UTC coverage: 92.705% (+0.6%) from 92.112%
1046

push

appveyor

Sholtee
Merge branch 'v10-preview1'

4791 of 5168 relevant lines covered (92.71%)

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