using Apache.NMS; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace EasyMQ { public interface IRPC { public void Respond(Func responder,string selector = ""); public TResponse? Request(TRequest request,ref bool istimeout,Dictionary? properties = null, CancellationToken token = default, UInt32 timeout = 1000); public Task RequestAsync(TRequest request, Dictionary? properties = null, CancellationToken token = default, UInt32 timeout = 1000); } }