public static void SendOut(IQueueMessage request, string hostAddress, int port, int ProcessTimeout, bool IsAsync, bool enableException = false) { //request.IsDuplex = false; using (TcpClientQueue client = new TcpClientQueue(hostAddress, port, ProcessTimeout, IsAsync)) { client.Execute(request, enableException); } }
// public static QueueAck Management(IQueueMessage request, string hostAddress, int port, int ProcessTimeout, bool IsAsync, bool enableException = false) //{ // //Type type = request.BodyType; // using (TcpClientQueue client = new TcpClientQueue(hostAddress, port, ProcessTimeout, IsAsync)) // { // return client.Management(request, enableException); // } //} public static QueueItem SendDuplex(IQueueMessage request, string hostAddress, int port, int ProcessTimeout, bool IsAsync, bool enableException = false) { //Type type = request.BodyType; using (TcpClientQueue client = new TcpClientQueue(hostAddress, port, ProcessTimeout, IsAsync)) { return(client.Execute(request, enableException)); } }