<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Timeoutduration on Matt Thornton</title>
    <link>http://localhost:1313/tags/timeoutduration/</link>
    <description>Recent content in Timeoutduration on Matt Thornton</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en</language>
    <lastBuildDate>Wed, 03 Oct 2012 12:59:06 +0000</lastBuildDate><atom:link href="http://localhost:1313/tags/timeoutduration/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>SharePoint 2010 State Machine workflow delayActivity tip</title>
      <link>http://localhost:1313/tech/sharepoint/sharepoint-2010-state-machine-workflow-delayactivity-tip/</link>
      <pubDate>Wed, 03 Oct 2012 12:59:06 +0000</pubDate>
      
      <guid>http://localhost:1313/tech/sharepoint/sharepoint-2010-state-machine-workflow-delayactivity-tip/</guid>
      
        <description>&lt;p&gt;If you&amp;rsquo;re using a delayActivity in your Visual Studio State Machine workflow, you are likely to want to use the InitializeTimeoutDuration handler to set the length of the delay.&lt;/p&gt;
&lt;p&gt;An easy mistake to make is to think you could do the following:&lt;/p&gt;
&lt;pre&gt;private void DelayActivity_InitializeTimeoutDuration(object sender, EventArgs e)
        {
            delayActivity1.TimeoutDuration = new TimeSpan(0, 10, 0);
        }
&lt;/pre&gt;
&lt;p&gt;However, this won&amp;rsquo;t work. This is because SharePoint will intialise a new instance of the delayActivity with the timeoutduration specified as default. To set the TimeoutDuration of your “actual” activity, you should do the following:&lt;/p&gt;</description>
      
    </item>
    
  </channel>
</rss>