Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>If you need to throttle by time, you should check out <a href="http://quartznet.sourceforge.net/" rel="nofollow">Quartz.net</a>. It can facilitate consistent polling. If you care about all requests, you should consider using some sort of queueing mechanism. MSMQ is probably the right solution but there are many specific implementations if you want to go bigger and use an ESB like <a href="http://www.nservicebus.com/" rel="nofollow">NServiceBus</a> or <a href="http://www.rabbitmq.com/" rel="nofollow">RabbitMQ</a>.</p> <p>Update:</p> <p>In that case, TPL Dataflow is your preferred solution if you can leverage the CTP. A throttled BufferBlock is the solution.</p> <p>This example comes from the <a href="http://go.microsoft.com/fwlink/?LinkId=205053" rel="nofollow">documentation provided by Microsoft</a>:</p> <pre><code>// Hand-off through a bounded BufferBlock&lt;T&gt; private static BufferBlock&lt;int&gt; m_buffer = new BufferBlock&lt;int&gt;( new DataflowBlockOptions { BoundedCapacity = 10 }); // Producer private static async void Producer() { while(true) { await m_buffer.SendAsync(Produce()); } } // Consumer private static async Task Consumer() { while(true) { Process(await m_buffer.ReceiveAsync()); } } // Start the Producer and Consumer private static async Task Run() { await Task.WhenAll(Producer(), Consumer()); } </code></pre> <p>Update:</p> <p>Check out RX's <a href="http://msdn.microsoft.com/en-us/library/hh229400%28v=vs.103%29.aspx" rel="nofollow">Observable.Throttle</a>.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload