title: Trying to understand Azure Service Bus Sessions
body: <p>So I am trying to understand Azure service bus Session ID for creating FIFO in my queue.</p>
  
  <p>The idea I have is pretty straight forward but I don't know if its the right way to thing when it comes to FIFO.</p>
  
  <p>What i am thinking are in these steps fro creating FIFO in my queue:</p>
  
  <p><strong><em>TO CREATE:</em></strong></p>
  
  <p><strong>First:</strong> Check the Queue for messages and their Session ID's to and expose  the ID hierarchy. </p>
  
  <p><strong>Next:</strong> Create new message with the the latest Session-ID in the hierarchy and iterate that value by 1 (+1)</p>
  
  <p><strong>Next:</strong> Send to Service Bus Queue.</p>
  
  <p><strong><em>TO READ:</em></strong></p>
  
  <p><strong>First:</strong> Check the Queue for messages and their Session ID's to and expose the the ID hierarchy.</p>
  
  <p><strong>Next:</strong> Read-And-Delete the earliest Session-ID in the hierarchy.</p>
  
  <p><strong>Next:</strong> Process...</p>
  
  <p>Keep in mind I haven't included error handling and such for example the read-and-delete part, because that I have already figured out.</p>
  
  <p>So the question is is this the right way of thinking and also, how do I achieve this in C# I cant really find something that explains this concept in a straight forward manner.   </p>