namespace Yw.Exchange.Memory { /// /// /// public class RunRealRecordExchangeHelper : IRunRealRecordExchangeHelper { private readonly Yw.MemoryExChangeHelper _helper = new(); /// /// 推送 /// public bool Push(List list) { if (list == null || !list.Any()) { return false; } var exchangeName = RunExchangeNameHelper.GetExchangeName(); return _helper.Push(exchangeName, list); } /// /// 接收 /// public bool Receive(Func, bool> func) { if (func == null) { return false; } var exchangeName = RunExchangeNameHelper.GetExchangeName(); return _helper.Receive(exchangeName, func); } /// /// 关闭 /// public void Close() { _helper.Close(); } } }