Esempio n. 1
0
 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);
     }
 }
Esempio n. 2
0
 // 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));
     }
 }