public unsafe static extern int ReceiveMessageByLookupId( QueueHandle handle, long lookupId, LookupAction action, MQPROPS properties, NativeOverlapped *overlapped, ReceiveCallback receiveCallback, ITransaction transaction); //MSMQ internal transaction
public unsafe static extern int ReceiveMessage( QueueHandle handle, uint timeout, ReadAction action, MQPROPS properties, NativeOverlapped *overlapped, ReceiveCallback receiveCallback, CursorHandle cursorHandle, ITransaction transaction); //MSMQ internal transaction
public QueueAsyncRequest(Message message, HashSet <QueueAsyncRequest> outstanding, uint timeoutMS, QueueHandle handle, ReadAction action, CursorHandle cursor) { Contract.Requires(cursor != null); this.action = action; this.handle = handle; this.timeoutMS = timeoutMS; Message = message; Props = message.Props.Allocate(); Tcs = new TaskCompletionSource <Message>(); Outstanding = outstanding; this.cursor = cursor; }
public static extern int PurgeQueue(QueueHandle sourceQueue);
public static extern int MoveMessage(QueueHandle sourceQueue, QueueHandle targetQueue, long lookupId, ITransaction transaction); //MSMQ internal transaction
public static extern int MoveMessage(QueueHandle sourceQueue, QueueHandle targetQueue, long lookupId, IntPtr transaction);
public static extern int MarkMessageRejected(QueueHandle handle, long lookupId);
public static extern int CreateCursor(QueueHandle handle, out CursorHandle cursorHandle);
public static extern int HandleToFormatName(QueueHandle handle, StringBuilder formatName, ref int count);
public static extern int OpenQueue(string formatName, QueueAccessMode access, QueueShareReceive shareMode, out QueueHandle handle);
public static extern int SendMessage(QueueHandle handle, MQPROPS properties, ITransaction transaction); //MSMQ internal transaction
public static extern int SendMessage(QueueHandle handle, MQPROPS properties, IntPtr transaction);