<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: C# 3.0, Parallel LINQ, And The Betfair API &#8211; An Introduction</title>
	<atom:link href="http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/feed/" rel="self" type="application/rss+xml" />
	<link>http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/</link>
	<description>Incoherent and disjointed opinionated drivel from somewhere near London</description>
	<lastBuildDate>Fri, 12 Feb 2010 23:33:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt</title>
		<link>http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/comment-page-1/#comment-4799</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Thu, 16 Oct 2008 00:38:10 +0000</pubDate>
		<guid isPermaLink="false">http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/#comment-4799</guid>
		<description>Wow. Thanks. I just went back to the API documentation and found that it pays to re-read each section even if they appear to be unchanged from one release to the next. This is good news. Bring on PLINQ!</description>
		<content:encoded><![CDATA[<p>Wow. Thanks. I just went back to the API documentation and found that it pays to re-read each section even if they appear to be unchanged from one release to the next. This is good news. Bring on PLINQ!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: russ</title>
		<link>http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/comment-page-1/#comment-4785</link>
		<dc:creator>russ</dc:creator>
		<pubDate>Wed, 15 Oct 2008 16:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/#comment-4785</guid>
		<description>Hi Matt,

The requirement that a unique session token be used for every single request was removed from the Betfair API some time ago. It is now possible to make many requests using a single token, and the temporal lifetime of a token is now quite long (not sure exactly how long, but I&#039;m pretty sure it&#039;s at least 24 hours). If you try the code above, you&#039;ll find it works fine.

For long-running bots, however, it would certainly be the case that you&#039;d periodically need to overwrite the session token with a new one. I normally declare the session token variable to be volatile, share it between threads, update it with every response, and think no more about it. It is fine for multiple threads to use the same token, or for some threads to use an old token and others to use a new one, as long as any given thread doesn&#039;t try to use a token that has expired.</description>
		<content:encoded><![CDATA[<p>Hi Matt,</p>
<p>The requirement that a unique session token be used for every single request was removed from the Betfair API some time ago. It is now possible to make many requests using a single token, and the temporal lifetime of a token is now quite long (not sure exactly how long, but I&#8217;m pretty sure it&#8217;s at least 24 hours). If you try the code above, you&#8217;ll find it works fine.</p>
<p>For long-running bots, however, it would certainly be the case that you&#8217;d periodically need to overwrite the session token with a new one. I normally declare the session token variable to be volatile, share it between threads, update it with every response, and think no more about it. It is fine for multiple threads to use the same token, or for some threads to use an old token and others to use a new one, as long as any given thread doesn&#8217;t try to use a token that has expired.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt</title>
		<link>http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/comment-page-1/#comment-4776</link>
		<dc:creator>Matt</dc:creator>
		<pubDate>Wed, 15 Oct 2008 07:04:44 +0000</pubDate>
		<guid isPermaLink="false">http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/#comment-4776</guid>
		<description>Hi,

Your application of PLINQ to this scenario is good, however I&#039;m a little confused how the session with the BF API is maintained.

My understanding is that the Session Token from each Response needs to be passed in to each subsequent Request to ensure the session is maintained with the API.

How would this be achieved when multiple calls are made to the API concurrently? (I realize that you can spin up multiple sessions but there is a maximum limit imposed per user account so I wouldn&#039;t think that to be a viable solution). Am eager to hear your response.

Thanks,
Matt</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Your application of PLINQ to this scenario is good, however I&#8217;m a little confused how the session with the BF API is maintained.</p>
<p>My understanding is that the Session Token from each Response needs to be passed in to each subsequent Request to ensure the session is maintained with the API.</p>
<p>How would this be achieved when multiple calls are made to the API concurrently? (I realize that you can spin up multiple sessions but there is a maximum limit imposed per user account so I wouldn&#8217;t think that to be a viable solution). Am eager to hear your response.</p>
<p>Thanks,<br />
Matt</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: green</title>
		<link>http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/comment-page-1/#comment-3227</link>
		<dc:creator>green</dc:creator>
		<pubDate>Wed, 13 Aug 2008 20:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://basildoncoder.com/blog/2008/02/23/c-30-parallel-linq-and-the-betfair-api-an-introduction/#comment-3227</guid>
		<description>http://www.linqhelp.com has a bunch of these 101&#039;s at their site. Nice read very lengthy=)</description>
		<content:encoded><![CDATA[<p><a href="http://www.linqhelp.com" rel="nofollow">http://www.linqhelp.com</a> has a bunch of these 101&#8217;s at their site. Nice read very lengthy=)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.199 seconds -->
