Ejemplo n.º 1
0
 public static int MQOpenQueue(string formatName, int access, int shareMode, out MessageQueueHandle handle)
 {
     try
     {
         return IntMQOpenQueue(formatName, access, shareMode, out handle);
     }
     catch (DllNotFoundException)
     {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
Ejemplo n.º 2
0
 public static int MQOpenQueue(string formatName, int access, int shareMode, out MessageQueueHandle handle)
 {
     try
     {
         return(IntMQOpenQueue(formatName, access, shareMode, out handle));
     }
     catch (DllNotFoundException)
     {
         throw new InvalidOperationException(Res.GetString(Res.MSMQNotInstalled));
     }
 }
Ejemplo n.º 3
0
 public unsafe static int MQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped,
                                              SafeNativeMethods.ReceiveCallback receiveCallback, ITransaction transaction)
 {
     try
     {
         return IntMQReceiveMessageByLookupId(handle, lookupId, action, properties, overlapped, receiveCallback, transaction);
     }
     catch (EntryPointNotFoundException)
     {
         throw new PlatformNotSupportedException(Res.GetString(Res.PlatformNotSupported));
     }
 }
Ejemplo n.º 4
0
 public unsafe static int MQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped,
                                                     SafeNativeMethods.ReceiveCallback receiveCallback, ITransaction transaction)
 {
     try
     {
         return(IntMQReceiveMessageByLookupId(handle, lookupId, action, properties, overlapped, receiveCallback, transaction));
     }
     catch (EntryPointNotFoundException)
     {
         throw new PlatformNotSupportedException(Res.GetString(Res.PlatformNotSupported));
     }
 }
 public static extern int MQCreateCursor(MessageQueueHandle handle, out CursorHandle cursorHandle);
 public static extern int MQCreateCursor(MessageQueueHandle handle, out CursorHandle cursorHandle);
Ejemplo n.º 7
0
 private static extern unsafe int IntMQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped, SafeNativeMethods.ReceiveCallback receiveCallback, ITransaction transaction);
Ejemplo n.º 8
0
 private static extern int IntMQOpenQueue(string formatName, int access, int shareMode, out MessageQueueHandle handle);
Ejemplo n.º 9
0
 public static extern int MQSendMessage(MessageQueueHandle handle, MessagePropertyVariants.MQPROPS properties, ITransaction transaction);
Ejemplo n.º 10
0
 public static extern unsafe int MQReceiveMessage(MessageQueueHandle handle, uint timeout, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped *overlapped, SafeNativeMethods.ReceiveCallback receiveCallback, CursorHandle cursorHandle, ITransaction transaction);
Ejemplo n.º 11
0
 public static extern int MQPurgeQueue(MessageQueueHandle handle);
Ejemplo n.º 12
0
 private unsafe static extern int IntMQReceiveMessageByLookupId(MessageQueueHandle handle, long lookupId, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped,
                                                                 SafeNativeMethods.ReceiveCallback receiveCallback, ITransaction transaction);
Ejemplo n.º 13
0
 public unsafe static extern int MQReceiveMessage(MessageQueueHandle handle, uint timeout, int action, MessagePropertyVariants.MQPROPS properties, NativeOverlapped* overlapped,
                                                                                             SafeNativeMethods.ReceiveCallback receiveCallback, CursorHandle cursorHandle, ITransaction transaction);
Ejemplo n.º 14
0
 public static extern int MQSendMessage(MessageQueueHandle handle, MessagePropertyVariants.MQPROPS properties, ITransaction transaction);
Ejemplo n.º 15
0
 private static extern int IntMQOpenQueue(string formatName, int access, int shareMode, out MessageQueueHandle handle);
Ejemplo n.º 16
0
 public static extern int MQPurgeQueue(MessageQueueHandle handle);