title: Context not available?
body: <p>Im playing around trying to create a custom activity in wf4.  I found a tutorial / example and have been using this to get started, however i seem to have a problem.</p>
  
  <pre><code>public sealed class SaveRequest : NativeActivity {
      // Define an activity input argument of type string
      [RequiredArgument]
      public InArgument&lt;Request&gt; Request { get; set; }
  
      // If your activity returns a value, derive from CodeActivity&lt;TResult&gt;
      // and return the value from the Execute method.
      protected override void Execute(NativeActivityContext context) {
          Request Request = this.Request.Get(context);
          Request.Id = Guid.NewGuid();
          Request.Title = "New Test";
          RequestMonkeyRepository Rep = new RequestMonkeyRepository();
          Rep.save(Request);
      }
  }
  </code></pre>
  
  <p>The code above always errors out with an null object instance when assigning the guid.  Im presuming its because i havent passed the request object to the workflow, but i cant see how they did this in the example.</p>
  
  <p>Im running a console app and my execution code is below</p>
  
  <pre><code>WorkflowInvoker.Invoke(new RequestMonkeyTest1.TestWorkflow());
  </code></pre>