Пример #1
0
 public bool TryRegister(SafeCloseSocket socket, Interop.Sys.SocketEvents current, Interop.Sys.SocketEvents events, out Interop.Error error)
 {
     Debug.Assert(WasAllocated, "Expected WasAllocated to be true");
     return(_engine.TryRegister(socket, current, events, _handle, out error));
 }
Пример #2
0
 public bool TryRegister(SafeSocketHandle socket, out Interop.Error error)
 {
     Debug.Assert(WasAllocated, "Expected WasAllocated to be true");
     return(_engine.TryRegister(socket, _handle, out error));
 }