public static void begin(string inPipeName, NewMessageDelegate inDelegate) { pipeName = inPipeName; pipeServerListener = new PipeListener(); pipeServerListener.PipeMessage += inDelegate; pipeServerListener.Listen(); connected = false; }
public static void dispose(NewMessageDelegate inDelegate) { pipeServerListener.PipeMessage -= inDelegate; pipeServerListener = null; }