예제 #1
0
 public static QueueItem SendDuplex(IQueueMessage request, string PipeName, PipeOptions options, bool enableException = false)
 {
     //Type type = request.BodyType;
     using (PipeClientQueue client = new PipeClientQueue(PipeName, true, options))
     {
         return(client.Execute(request, enableException));
     }
 }
예제 #2
0
 //public static QueueAck Management(IQueueMessage request, string PipeName, bool IsAsync, bool enableException = false)
 //{
 //    //Type type = request.BodyType;
 //    using (PipeClientQueue client = new PipeClientQueue(PipeName, true, IsAsync))
 //    {
 //        return client.Management(request, enableException);
 //    }
 //}
 public static void SendOut(IQueueMessage request, string PipeName, PipeOptions options, bool enableException = false)
 {
     //request.IsDuplex = false;
     using (PipeClientQueue client = new PipeClientQueue(PipeName, false, options))
     {
         client.Execute(request, enableException);
     }
 }
예제 #3
0
 public static QueueAck Enqueue(QueueItem request, string PipeName, PipeOptions options, bool enableException = false)
 {
     //Type type = request.BodyType;
     using (PipeClientQueue client = new PipeClientQueue(PipeName, true, options))
     {
         return(client.Enqueue(request, enableException));
     }
 }