Message Count from Queue

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Reshma Prabhu

    #1

    Message Count from Queue

    Hello,

    Could any one please give me a sample code to count the number of
    messages in a queue using C# and the .NET environment without using
    Performance counters.

    Thanks,
    Reshma


  • Ziga Jakhel

    #2
    Re: Message Count from Queue

    Hmm... maybe sounds silly, but one way of doing it would be to simply use a
    messageEnumerat or and loop through all the messages, thus counting them.

    Regards,

    Sigmund

    "Reshma Prabhu" <reshma_prabhu@ persistent.co.i n> wrote in message
    news:uUEGAAbZFH A.1044@TK2MSFTN GP10.phx.gbl...[color=blue]
    > Hello,
    >
    > Could any one please give me a sample code to count the number of
    > messages in a queue using C# and the .NET environment without using
    > Performance counters.
    >
    > Thanks,
    > Reshma
    >
    >[/color]


    Comment

    Working...