Renamed from DotnetStreams to DotnetStandardStreams.
This commit is contained in:
parent
1e9844143c
commit
1d7cefb207
@ -1,13 +1,13 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 17
|
# Visual Studio Version 17
|
||||||
VisualStudioVersion = 17.13.35919.96 d17.13
|
VisualStudioVersion = 17.13.35919.96
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetStreams", "DotnetStreams\DotnetStreams.csproj", "{42612FD1-4024-4091-B62F-3A897A4BBEF2}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetStandardStreams", "DotnetStandardStreams\DotnetStandardStreams.csproj", "{42612FD1-4024-4091-B62F-3A897A4BBEF2}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetStreamsTests", "DotnetStreamsTests\DotnetStreamsTests.csproj", "{1CE38FCB-E08F-8213-356A-F21626719E30}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetStandardStreamsTests", "DotnetStandardStreamsTests\DotnetStandardStreamsTests.csproj", "{1CE38FCB-E08F-8213-356A-F21626719E30}"
|
||||||
EndProject
|
EndProject
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetStreamsApp", "DotnetStreamsApp\DotnetStreamsApp.csproj", "{7EF73074-AAA6-13D4-5EF8-6D91B220C690}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DotnetStandardStreamsApp", "DotnetStandardStreamsApp\DotnetStandardStreamsApp.csproj", "{7EF73074-AAA6-13D4-5EF8-6D91B220C690}"
|
||||||
EndProject
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public class AnonOutputTarget : IOutputTarget
|
public class AnonOutputTarget : IOutputTarget
|
||||||
{
|
{
|
||||||
@ -1,6 +1,6 @@
|
|||||||
using System;
|
using System;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public class BytesReadEventArgs
|
public class BytesReadEventArgs
|
||||||
{
|
{
|
||||||
@ -17,10 +17,10 @@ namespace DotnetStreams
|
|||||||
|
|
||||||
public class BinaryStdinReader
|
public class BinaryStdinReader
|
||||||
{
|
{
|
||||||
protected readonly Action<byte[], int> dataReceiverProc;
|
protected readonly Action<byte[], int>? dataReceiverProc;
|
||||||
protected readonly Action<int> doneProc;
|
protected readonly Action<int>? doneProc;
|
||||||
public event BytesReadEventHandler OnBytesRead;
|
public event BytesReadEventHandler? OnBytesRead;
|
||||||
public event EventHandler OnDone;
|
public event EventHandler? OnDone;
|
||||||
public BinaryStdinReader(Action<byte[], int> dataReceiverProc, Action<int> doneProc)
|
public BinaryStdinReader(Action<byte[], int> dataReceiverProc, Action<int> doneProc)
|
||||||
{
|
{
|
||||||
this.dataReceiverProc = dataReceiverProc;
|
this.dataReceiverProc = dataReceiverProc;
|
||||||
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public class ConsoleOutputTarget : IOutputTarget
|
public class ConsoleOutputTarget : IOutputTarget
|
||||||
{
|
{
|
||||||
@ -5,7 +5,7 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public class FileTextSource : ITextSource
|
public class FileTextSource : ITextSource
|
||||||
{
|
{
|
||||||
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public interface IOutputTarget
|
public interface IOutputTarget
|
||||||
{
|
{
|
||||||
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public interface ITextSource
|
public interface ITextSource
|
||||||
{
|
{
|
||||||
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public class ListOutputTarget : IOutputTarget
|
public class ListOutputTarget : IOutputTarget
|
||||||
{
|
{
|
||||||
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public class ListTextSource : ITextSource
|
public class ListTextSource : ITextSource
|
||||||
{
|
{
|
||||||
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public class ProcessedConsoleOutputTarget : ConsoleOutputTarget
|
public class ProcessedConsoleOutputTarget : ConsoleOutputTarget
|
||||||
{
|
{
|
||||||
@ -4,7 +4,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
public class StdInTextSource : ITextSource
|
public class StdInTextSource : ITextSource
|
||||||
{
|
{
|
||||||
@ -2,13 +2,13 @@
|
|||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<OutputType>Exe</OutputType>
|
<OutputType>Exe</OutputType>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<WarningsAsErrors>nullable</WarningsAsErrors>
|
<WarningsAsErrors>nullable</WarningsAsErrors>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\DotnetStreams\DotnetStreams.csproj" />
|
<ProjectReference Include="..\DotnetStandardStreams\DotnetStandardStreams.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreams
|
namespace DotnetStandardStreams
|
||||||
{
|
{
|
||||||
//public interface ITextSource
|
//public interface ITextSource
|
||||||
//{
|
//{
|
||||||
@ -1,7 +1,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using DotnetStreams;
|
using DotnetStandardStreams;
|
||||||
|
|
||||||
namespace StreamsTest
|
namespace StreamsTest
|
||||||
{
|
{
|
||||||
@ -2,7 +2,7 @@
|
|||||||
"profiles": {
|
"profiles": {
|
||||||
"StreamsTest": {
|
"StreamsTest": {
|
||||||
"commandName": "Project",
|
"commandName": "Project",
|
||||||
"commandLineArgs": "C:\\Users\\Phil\\source\\repos\\DotnetStreams\\DotnetStreamsApp\\delme.txt",
|
"commandLineArgs": "C:\\Users\\Phil\\source\\repos\\DotnetStandardStreams\\DotnetStandardStreamsApp\\delme.txt",
|
||||||
"sqlDebugging": true
|
"sqlDebugging": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -5,11 +5,11 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using Shouldly;
|
using Shouldly;
|
||||||
using DotnetStreams;
|
using DotnetStandardStreams;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using DotnetStreamsTests.Testables;
|
using DotnetStandardStreamsTests.Testables;
|
||||||
|
|
||||||
namespace DotnetStreamsTests
|
namespace DotnetStandardStreamsTests
|
||||||
{
|
{
|
||||||
public class ConsoleOutputTargetTests
|
public class ConsoleOutputTargetTests
|
||||||
{
|
{
|
||||||
@ -1,7 +1,7 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<TargetFramework>net5.0</TargetFramework>
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
<IsPackable>false</IsPackable>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
@ -21,7 +21,7 @@
|
|||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<ProjectReference Include="..\DotnetStreams\DotnetStreams.csproj" />
|
<ProjectReference Include="..\DotnetStandardStreams\DotnetStandardStreams.csproj" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
</Project>
|
</Project>
|
||||||
@ -1,10 +1,10 @@
|
|||||||
using DotnetStreams;
|
using DotnetStandardStreams;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using Shouldly;
|
using Shouldly;
|
||||||
|
|
||||||
namespace DotnetStreamsTests
|
namespace DotnetStandardStreamsTests
|
||||||
{
|
{
|
||||||
public class ListOutputTargetTests
|
public class ListOutputTargetTests
|
||||||
{
|
{
|
||||||
@ -5,9 +5,9 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using Shouldly;
|
using Shouldly;
|
||||||
using DotnetStreams;
|
using DotnetStandardStreams;
|
||||||
|
|
||||||
namespace DotnetStreamsTests
|
namespace DotnetStandardStreamsTests
|
||||||
{
|
{
|
||||||
public class ListTextSourceTests
|
public class ListTextSourceTests
|
||||||
{
|
{
|
||||||
@ -1,4 +1,4 @@
|
|||||||
using DotnetStreamsTests.Testables;
|
using DotnetStandardStreamsTests.Testables;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
@ -7,9 +7,9 @@ using System.Text;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using Xunit;
|
using Xunit;
|
||||||
using Shouldly;
|
using Shouldly;
|
||||||
using DotnetStreams;
|
using DotnetStandardStreams;
|
||||||
|
|
||||||
namespace DotnetStreamsTests
|
namespace DotnetStandardStreamsTests
|
||||||
{
|
{
|
||||||
public class StdInTextSourceTests
|
public class StdInTextSourceTests
|
||||||
{
|
{
|
||||||
@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreamsTests.Testables
|
namespace DotnetStandardStreamsTests.Testables
|
||||||
{
|
{
|
||||||
public class ListTextReader : TextReader
|
public class ListTextReader : TextReader
|
||||||
{
|
{
|
||||||
@ -5,7 +5,7 @@ using System.Linq;
|
|||||||
using System.Text;
|
using System.Text;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
|
|
||||||
namespace DotnetStreamsTests.Testables
|
namespace DotnetStandardStreamsTests.Testables
|
||||||
{
|
{
|
||||||
public class ListWriter : TextWriter
|
public class ListWriter : TextWriter
|
||||||
{
|
{
|
||||||
@ -2,9 +2,9 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
using DotnetStreams;
|
using DotnetStandardStreams;
|
||||||
|
|
||||||
namespace DotnetStreamsTests.Testables
|
namespace DotnetStandardStreamsTests.Testables
|
||||||
{
|
{
|
||||||
public class TestableConsoleOutputTarget : ConsoleOutputTarget, IDisposable
|
public class TestableConsoleOutputTarget : ConsoleOutputTarget, IDisposable
|
||||||
{
|
{
|
||||||
Loading…
Reference in New Issue
Block a user