public void RPC_SlaveCallsMasterAfterClosed_Exception() { ipcMaster = new RpcBuffer(ipcName, async(msgId, payload) => { }); ipcSlave = new RpcBuffer(ipcName); ipcSlave.RemoteRequest(null); ipcMaster.Dispose(); Assert.ThrowsException <InvalidOperationException>(() => ipcSlave.RemoteRequest(null)); }
public void Cleanup() { ipcMaster?.Dispose(); ipcSlave?.Dispose(); }
public void Dispose() { rpcBuffer?.Dispose(); }