Dynamic Update Behavior for Workflow Services

You can dynamically update the behavior of a workflow service. However, if you do, the behavior of Windows Workflow Foundation might not be what you expect. The following table shows the behavior for updates made while the service is running.

Update made while the service is running Behavior

A ReceiveActivity activity is added to the workflow that modifies the security settings.

The service accepts the change, but the new security settings are ignored until the workflow is restarted. No error message is generated.

The service contract is replaced by another service contract.

The service behaves according to the most recent service contract. No error message is generated.

In a workflow-first workflow service, a service contract is removed.

The service no longer responds to service requests based on the removed service contract. No error message is generated, not even if the removed service contract was the only service contract for the service. No error message is generated.

In a workflow-first workflow service, a new service contract is added.

The service does not accept any connections for the new service contract until it is restarted. No error message is generated.

In a workflow-first workflow service, a new service operation is added.

The service operation cannot be reached until the service is restarted. A MessageSecurityException error is generated.

See Also

Concepts

Using Workflow Changes in Workflows
How to: Apply Workflow Changes to Workflows

Other Resources

Creating Workflow Services and Durable Services