How to eliminate tempuri.org from your service WSDL

tempuri.org is the default namespace applied to WCF Services and Workflow Services.  You can and should specify your service namespace. It is recommended that you explicitly specify a name and namespace for the service contract, and an action for each operation to avoid using "http://tempuri.org" and to prevent interface and method names from being exposed…

0

How to detect if the .NET Framework Platform Update 1 is installed

Humans Go to Control Panel / Programs / Programs and Features / View Installed Updates Use the Search Box to search the updates for KB2495593 KB2478063 Or if you prefer, search the list your self Microsoft .NET Framework 4 Platform Update 1 – Runtime Update Look for .NET Framework 4 Extended Look for Update for…

2

Microsoft .NET Framework 4 Platform Update 1

The Microsoft .NET Framework 4 Platform Update 1 released today, 4/18/2011. The Microsoft .NET Framework 4 Platform Update 1 is a platform update that is a set of new features that provides additional functionality for top customer requests and important scenarios. The features that are enabled in this update are: Windows Workflow Foundation (WF) State…


The .NET 4 Platform Update and WF4 State Machine

 Update: This went live 4/18/2011, and there are more details here: Microsoft .NET Framework 4 Platform Update 1 On March 25th at his Tech-Ed India keynote Jason Zander announced some great new resources for developers.  Our team has been working hard on these releases and I’m happy to share with you that on April 25th…

3

(WF4) Why can’t I change the TypeArgument of Switch<> or FlowSwitch<> using the property grid?

I don’t remember anyone ever actually asking me this, but I found myself wondering the question while rustling up a quick rehosting app. Foreach<> activity lets you change the TypeArgument dynamically via the property grid. But FlowSwitch<> doesn’t. Why? As usual, although it take a while, I like investigating issues like this in a practical…

0

PDC10–WF4 Session “Windows Workflow Futures”

Last year we at PDC10 we gave you a preview of the next release of Windows Workflow Foundation.  The video has just been posted to Channel 9. Windows Workflow Futures Speaker: Ron Jacobs Learn about the key investments we’re making in Windows Workflow Foundation (WF). See the WF improvements we’re working on for workflow authoring,…

1

Cancelling a WF4 AsyncCodeActivity

Even when AsyncCodeActivity.Cancel is called, the activity will still execute the EndExecute method, so it isn’t immediately obvious why a second path of execution is necessary. Implementing this method is useful only when AsyncCodeActivityContext.MarkCanceled is implemented, which in turn is useful mainly when cancellation is meaningful for the underlying operation (i.e. if work already completed…


Using a WF4 SymbolResolver to access host environment information

To access environment information from within an activity, you’ll need to use the System.Activities.Hosting.SymbolResolver class. Here’s the code to access the symbol resolver from within an activity: public sealed class SymbolUser : CodeActivity{  protected override void Execute(CodeActivityContext context)  {    SymbolResolver symbolResolver = context.GetExtension<SymbolResolver>();    MyObject obj = symbolResolver[“CustomObject”] as MyObject;    Console.WriteLine(obj.MyString);  }} public class MyObject{  public…


WF4: How to Unit Test a Workflow that calls a WCF Service

“The important point is that our test can’t control what that dependency returns to our code under test or how it behaves (if we wanted to simulate an exception, for example). That’s when we use stubs.” – The Art of Unit Testing – Roy Osherove, Yesterday morning I received an email from Ryo in Belgium…

3

WF4 Versioning Spike: How To Unit Test Activity Versioning

With the work I’ve been doing on versioning I’ve had to write unit tests that verify the behavior I expect from the helper classes in Microsoft.Activities.dll.  If you want to verify that your assembly versioning strategy is working correctly you may have to do similar testing.  This sort of testing is tricky… in this post…

0