You've already forked linux-packaging-mono
Imported Upstream version 4.4.2.4
Former-commit-id: 92904c9c5915c37244316e42ba99e7b934ed7ee2
This commit is contained in:
parent
589d484eee
commit
0b4a830db1
@@ -59,10 +59,18 @@ namespace System.IO.Pipes
|
||||
}
|
||||
|
||||
public AnonymousPipeServerStream (PipeDirection direction, HandleInheritability inheritability, int bufferSize)
|
||||
#if MOBILE
|
||||
: base (direction, bufferSize)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
#else
|
||||
: this (direction, inheritability, bufferSize, null)
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
#if !MOBILE
|
||||
public AnonymousPipeServerStream (PipeDirection direction, HandleInheritability inheritability, int bufferSize, PipeSecurity pipeSecurity)
|
||||
: base (direction, bufferSize)
|
||||
{
|
||||
@@ -77,6 +85,7 @@ namespace System.IO.Pipes
|
||||
InitializeHandle (impl.Handle, false, false);
|
||||
IsConnected = true;
|
||||
}
|
||||
#endif
|
||||
|
||||
[MonoTODO]
|
||||
public AnonymousPipeServerStream (PipeDirection direction, SafePipeHandle serverSafePipeHandle, SafePipeHandle clientSafePipeHandle)
|
||||
@@ -90,6 +99,9 @@ namespace System.IO.Pipes
|
||||
if (direction == PipeDirection.InOut)
|
||||
throw new NotSupportedException ("Anonymous pipe direction can only be either in or out.");
|
||||
|
||||
#if MOBILE
|
||||
throw new NotImplementedException ();
|
||||
#else
|
||||
if (IsWindows)
|
||||
impl = new Win32AnonymousPipeServer (this, serverSafePipeHandle, clientSafePipeHandle);
|
||||
else
|
||||
@@ -99,6 +111,12 @@ namespace System.IO.Pipes
|
||||
IsConnected = true;
|
||||
|
||||
ClientSafePipeHandle = clientSafePipeHandle;
|
||||
#endif
|
||||
}
|
||||
|
||||
~AnonymousPipeServerStream ()
|
||||
{
|
||||
// To be compatible with .net
|
||||
}
|
||||
|
||||
IAnonymousPipeServer impl;
|
||||
|
||||
Reference in New Issue
Block a user