protected IpcEngineBase(IIpcListener ipcListener, string engineName = "") { IpcProcessor = new IpcProcessor(); _ipcListener = ipcListener; _ipcListener.ExceptionThrown += OnIpcListenerExceptionThrown; _engineName = string.IsNullOrEmpty(engineName) ? string.Empty : $"{engineName} "; }
public void Register(IIpcListener listener) { if (!this.mListener.Contains(listener)) { this.mListener.Add(listener); } }
public void UnRegister(IIpcListener listener) { if (this.mListener.Contains(listener)) { this.mListener.Remove(listener); } }
public ServiceIpcEngine(IIpcListener ipcListener) : base(ipcListener, "Service") { }