You've already forked linux-packaging-mono
Imported Upstream version 5.18.0.142
Former-commit-id: 7467d4b717762eeaf652d77f1486dd11ffb1ff1f
This commit is contained in:
parent
e52655b4dc
commit
0abdbe5a7d
@ -0,0 +1,22 @@
|
||||
using Microsoft.Win32.SafeHandles;
|
||||
using System.Diagnostics;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
namespace System.IO.Pipes
|
||||
{
|
||||
public sealed partial class AnonymousPipeServerStream
|
||||
{
|
||||
public AnonymousPipeServerStream (PipeDirection direction, HandleInheritability inheritability, int bufferSize, PipeSecurity pipeSecurity)
|
||||
: base (direction, bufferSize)
|
||||
{
|
||||
if (direction == PipeDirection.InOut) {
|
||||
throw new NotSupportedException(SR.NotSupported_AnonymousPipeUnidirectional);
|
||||
}
|
||||
if (inheritability < HandleInheritability.None || inheritability > HandleInheritability.Inheritable) {
|
||||
throw new ArgumentOutOfRangeException(nameof(inheritability), SR.ArgumentOutOfRange_HandleInheritabilityNoneOrInheritable);
|
||||
}
|
||||
|
||||
Create(direction, inheritability, bufferSize, pipeSecurity);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user