run methods from all users in a queue
<p>My setup: User has a page where he performs some actions and data transformations.<br>
I store those actions in a dataset (in a session).<br>
 Then, on a button click I need to perform some more transformation and call custom database function that will insert each row from each datatable into a database. I have all that worked out and it works pretty good.    </p>

<p>However, now, what I need to do is to modify a button click event not to run immediately, but put that action in a queue (it's a common queue for all users). So if user1 click the button, then user2 clicked the button, then we need to take user1 dataset and run method on it, and only after that take user2 dataset and run method on it. one queue for all.  </p>

<pre><code>private void btnclick()
{
  DataSet ds = Session["test"] as DataSet;
  PerformFinalTransformation(ds);
  foreach (DataTable dt in ds.Tables)
  {
     foreach (DataRow dr in dt.Rows)
     {
        CallCustomSqlFunction(dr);
     }
  }
}
</code></pre>

<p><strong>I'd like to avoid storing datasets in a database if possible, since they are not the same for each user (number of tables/columns). I'm looking for any pointers on how this can be done in asp.net /c#. (Is quartz.net something I should consider?). What concepts should I look for? parallel programming? or asp.net queue? or something else? Cannot even start, since do not know what to start with. Btw, I use the latest DotNetNuke in my app if that helps somehow.</strong></p>
