.SingleOrDefault(input => Regex.IsMatch(input, $"^dotnetcore-diagnostic-{processId}-(\\d+)-socket$"));
if (ipcPort == null)
{
- throw new InvalidOperationException($"Process {processId} not running compatible .NET Core runtime");
+ throw new PlatformNotSupportedException($"Process {processId} not running compatible .NET Core runtime");
}
string path = Path.Combine(Path.GetTempPath(), ipcPort);
var remoteEP = new UnixDomainSocketEndPoint(path);
.SingleOrDefault(input => Regex.IsMatch(input, $"^dotnetcore-diagnostic-{processId}-(\\d+)-socket$"));
if (ipcPort == null)
{
- throw new InvalidOperationException($"Process {processId} not running compatible .NET Core runtime");
+ throw new PlatformNotSupportedException($"Process {processId} not running compatible .NET Core runtime");
}
string path = Path.Combine(Path.GetTempPath(), ipcPort);
var remoteEP = new UnixDomainSocketEndPoint(path);
@this.Write(Encoding.Unicode.GetBytes(value + '\0'));
}
- public static void WriteAsciiString(this BinaryWriter @this, string value)
- {
- if (@this == null)
- throw new ArgumentNullException(nameof(@this));
-
- @this.Write(value != null ? (value.Length + 1) : 0);
- if (value != null)
- @this.Write(Encoding.ASCII.GetBytes(value + '\0'));
- }
-
#if DEBUG
private static int GetByteCount(this string @this)
{