public static bool ValidateMessageLookupAction(MessageLookupAction value) { if (((value != MessageLookupAction.Current) && (value != MessageLookupAction.Next)) && ((value != MessageLookupAction.Previous) && (value != MessageLookupAction.First))) { return(value == MessageLookupAction.Last); } return(true); }
public static bool ValidateMessageLookupAction(MessageLookupAction value) { if (((value != MessageLookupAction.Current) && (value != MessageLookupAction.Next)) && ((value != MessageLookupAction.Previous) && (value != MessageLookupAction.First))) { return (value == MessageLookupAction.Last); } return true; }
public static bool ValidateMessageLookupAction(MessageLookupAction value) { // // note that MessageLookupAction has disjoined values // return((value == MessageLookupAction.Current) || (value == MessageLookupAction.Next) || (value == MessageLookupAction.Previous) || (value == MessageLookupAction.First) || (value == MessageLookupAction.Last)); }
public static bool ValidateMessageLookupAction(MessageLookupAction value) { // // note that MessageLookupAction has disjoined values // return (value == MessageLookupAction.Current) || (value == MessageLookupAction.Next) || (value == MessageLookupAction.Previous) || (value == MessageLookupAction.First) || (value == MessageLookupAction.Last); }
public Message PeekByLookupId(MessageLookupAction action, long lookupId) {}
public Message ReceiveByLookupId(MessageLookupAction action, long lookupId, MessageQueueTransaction transaction) {}
/// <summary> /// Introduced in MSMQ 3.0. Peeks at a specific message from the queue. The message can be specified by a lookup identifier or by its position at the front or end of the queue. /// </summary> /// <returns> /// The <see cref="T:System.Messaging.Message"/> specified by the <paramref name="action"/> and <paramref name="lookupId"/> parameters passed in. /// </returns> /// <param name="action">One of the <see cref="T:System.Messaging.MessageLookupAction"/> values, specifying how the message is read in the queue. Specify one of the following:MessageLookupAction.Current: Peeks at the message specified by <paramref name="lookupId"/>.MessageLookupAction.Next: Peeks at the message following the message specified by <paramref name="lookupId"/>.MessageLookupAction.Previous: Peeks at the message preceding the message specified by <paramref name="lookupId"/>.MessageLookupAction.First: Peeks at the first message in the queue. The <paramref name="lookupId"/> parameter must be set to 0.MessageLookupAction.Last: Peeks at the last message in the queue. The <paramref name="lookupId"/> parameter must be set to 0.</param><param name="lookupId">The <see cref="P:System.Messaging.Message.LookupId"/> of the message to peek at, or 0. 0 is used when accessing the first or last message in the queue. </param><exception cref="T:System.PlatformNotSupportedException">MSMQ 3.0 is not installed.</exception><exception cref="T:System.InvalidOperationException">The message with the specified <paramref name="lookupId"/> could not be found. </exception><exception cref="T:System.Messaging.MessageQueueException">An error occurred when accessing a Message Queuing method. </exception><exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The <paramref name="action"/> parameter is not one of the <see cref="T:System.Messaging.MessageLookupAction"/> members.</exception> public Message PeekByLookupId(MessageLookupAction action, long lookupId) { return _queue.PeekByLookupId(action, lookupId); }
/// <summary> /// Introduced in MSMQ 3.0. Receives a specific message from a transactional queue. The message can be specified by a lookup identifier or by its position at the front or end of the queue. /// </summary> /// <returns> /// The <see cref="T:System.Messaging.Message"/> specified by the <paramref name="lookupId"/> and <paramref name="action"/> parameters passed in. /// </returns> /// <param name="action">One of the <see cref="T:System.Messaging.MessageLookupAction"/> values, specifying how the message is read in the queue. Specify one of the following:MessageLookupAction.Current: Receives the message specified by <paramref name="lookupId"/> and removes it from the queue.MessageLookupAction.Next: Receives the message following the message specified by <paramref name="lookupId"/> and removes it from the queue.MessageLookupAction.Previous: Receives the message preceding the message specified by <paramref name="lookupId"/> and removes it from the queue.MessageLookupAction.First: Receives the first message in the queue and removes it from the queue. The <paramref name="lookupId"/> parameter must be set to 0.MessageLookupAction.Last: Receives the last message in the queue and removes it from the queue. The <paramref name="lookupId"/> parameter must be set to 0.</param><param name="lookupId">The <see cref="P:System.Messaging.Message.LookupId"/> of the message to receive, or 0. 0 is used when accessing the first or last message in the queue. </param><param name="transaction">The <see cref="T:System.Messaging.MessageQueueTransaction"/> object.</param><exception cref="T:System.PlatformNotSupportedException">MSMQ 3.0 is not installed.</exception><exception cref="T:System.InvalidOperationException">The message with the specified <paramref name="lookupId"/> could not be found. </exception><exception cref="T:System.Messaging.MessageQueueException">An error occurred when accessing a Message Queuing method.-or- The queue is non-transactional.</exception><exception cref="T:System.ComponentModel.InvalidEnumArgumentException">The <paramref name="action"/> parameter is not one of the <see cref="T:System.Messaging.MessageLookupAction"/> members.</exception> public Message ReceiveByLookupId(MessageLookupAction action, long lookupId, MessageQueueTransaction transaction) { return _queue.ReceiveByLookupId(action, lookupId, transaction); }
public Message PeekByLookupId(MessageLookupAction action, long lookupId) { }
public Message ReceiveByLookupId(MessageLookupAction action, long lookupId, MessageQueueTransaction transaction) { }
public Message ReceiveByLookupId(MessageLookupAction action, long lookupId, MessageQueueTransaction transaction) { CheckDisposed(); return(_wrapped.ReceiveByLookupId(action, lookupId, transaction)); }
public Message PeekByLookupId(MessageLookupAction action, long lookupId) { CheckDisposed(); return(_wrapped.PeekByLookupId(action, lookupId)); }