You've already forked linux-packaging-mono
Imported Upstream version 4.6.0.150
Former-commit-id: 73e3bb1e96dd09dc931c1dfe559d2c7f7b8b02c7
This commit is contained in:
parent
02ac915603
commit
b95516a3dd
@ -37,6 +37,8 @@ using System.Security.AccessControl;
|
||||
using System.Security.Permissions;
|
||||
using System.Security.Principal;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.Win32;
|
||||
using Microsoft.Win32.SafeHandles;
|
||||
|
||||
@ -113,6 +115,10 @@ namespace System.IO.Pipes
|
||||
}
|
||||
#endif
|
||||
|
||||
~NamedPipeClientStream () {
|
||||
Dispose (false);
|
||||
}
|
||||
|
||||
INamedPipeClient impl;
|
||||
|
||||
public void Connect ()
|
||||
@ -137,6 +143,26 @@ namespace System.IO.Pipes
|
||||
#endif
|
||||
}
|
||||
|
||||
public Task ConnectAsync ()
|
||||
{
|
||||
return ConnectAsync (Timeout.Infinite, CancellationToken.None);
|
||||
}
|
||||
|
||||
public Task ConnectAsync (int timeout)
|
||||
{
|
||||
return ConnectAsync (timeout, CancellationToken.None);
|
||||
}
|
||||
|
||||
public Task ConnectAsync (CancellationToken cancellationToken)
|
||||
{
|
||||
return ConnectAsync (Timeout.Infinite, cancellationToken);
|
||||
}
|
||||
|
||||
public Task ConnectAsync (int timeout, CancellationToken cancellationToken)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
public int NumberOfServerInstances {
|
||||
get {
|
||||
CheckPipePropertyOperations ();
|
||||
|
@ -32,6 +32,8 @@ using Microsoft.Win32.SafeHandles;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Security.AccessControl;
|
||||
using System.Security.Permissions;
|
||||
using System.Security.Principal;
|
||||
@ -153,6 +155,17 @@ namespace System.IO.Pipes
|
||||
IsConnected = true;
|
||||
}
|
||||
|
||||
public Task WaitForConnectionAsync ()
|
||||
{
|
||||
return WaitForConnectionAsync (CancellationToken.None);
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
public Task WaitForConnectionAsync (CancellationToken cancellationToken)
|
||||
{
|
||||
throw new NotImplementedException ();
|
||||
}
|
||||
|
||||
[MonoTODO]
|
||||
[SecurityPermission (SecurityAction.Demand, Flags = SecurityPermissionFlag.ControlPrincipal)]
|
||||
public string GetImpersonationUserName ()
|
||||
|
@ -269,13 +269,13 @@ namespace System.IO.Pipes
|
||||
|
||||
pipeSecurity.Persist (SafePipeHandle);
|
||||
}
|
||||
#endif
|
||||
|
||||
// pipe I/O
|
||||
|
||||
public void WaitForPipeDrain ()
|
||||
{
|
||||
}
|
||||
#endif
|
||||
|
||||
[MonoTODO]
|
||||
public override int Read ([In] byte [] buffer, int offset, int count)
|
||||
|
Reference in New Issue
Block a user