Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Register()

static unsafe PosixSignalRegistration System.Runtime.InteropServices.PosixSignalRegistration.Register ( PosixSignal signal,
Action< PosixSignalContext > handler )
inlinestaticprivate

Definition at line 55 of file PosixSignalRegistration.cs.

56 {
57 if ((uint)(signal - -4) > 3u)
58 {
59 throw new PlatformNotSupportedException();
60 }
61 Token token = new Token(signal, handler);
64 {
66 {
68 }
69 s_registrations.Add(token);
70 return result;
71 }
72 }
static unsafe bool SetConsoleCtrlHandler(delegate *unmanaged< int, BOOL > HandlerRoutine, bool Add)
static Exception GetExceptionForLastWin32Error(string path="")

References System.Runtime.InteropServices.PosixSignalRegistration.PosixSignalRegistration(), System.Add, System.IO.Win32Marshal.GetExceptionForLastWin32Error(), System.Runtime.InteropServices.PosixSignalRegistration.HandlerRoutine(), System.Runtime.InteropServices.PosixSignalRegistration.s_registrations, and Interop.Kernel32.SetConsoleCtrlHandler().

Referenced by System.Runtime.InteropServices.PosixSignalRegistration.Create().