Home Forums Support one question in SendReceiveOptions.cs

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #2763
    Anonymous
    Inactive
    public QueueItemPriority ReceiveHandlePriority
            {
                get
                {
                    if (Options.ContainsKey("ReceiveHandlePriority"))
                        return (QueueItemPriority)Enum.Parse(typeof(QueueItemPriority), "ReceiveHandlePriority");
                    else
                        return QueueItemPriority.Normal;
                }
                set 
                { 
                    Options["ReceiveHandlePriority"] = Enum.GetName(typeof(QueueItemPriority), value); 
                }
            }

    I think the above code may be need replace with the below code.
    ==============

            public QueueItemPriority ReceiveHandlePriority
            {
                get
                {
                    if (Options.ContainsKey("ReceiveHandlePriority"))
     
                        return (QueueItemPriority)Enum.Parse(typeof(QueueItemPriority), <strong>Options["ReceiveHandlePriority"]</strong>);
    
                    else
                        return QueueItemPriority.Normal;
                }
                set 
                { 
                    Options["ReceiveHandlePriority"] = Enum.GetName(typeof(QueueItemPriority), value); 
                }
            }

    Best regards

    • This topic was modified 10 years, 3 months ago by .
    • This topic was modified 10 years, 3 months ago by .
    #2768
    Anonymous
    Inactive

    Well found, another bug. This one was a quick fix.

    Note: If you post code to the forums please bracket the code in the provided ‘code’ tag so that it can be formatted correctly.

    Kind regards,
    Marc

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.