|
225 | 225 | <format type="text/markdown">< sample. |
| 228 | + If the host does not renew the lock (in other words, extend the lease) with this in this time period, the persistence provider unlocks the instance and another host may lock the instance. The value is a <xref:System.TimeSpan> of the form "hh:mm:ss". The minimum permitted value is "00:00:01" (1 sec). The default value of this property is "00:00:30" (30 seconds). |
| 229 | +
|
| 230 | +## Examples |
| 231 | +
|
| 232 | +The following code sample demonstrates using HostLockRenewalPeriod in a <xref:System.Activities.DurableInstancing.SqlWorkflowInstanceStore>. |
234 | 233 |
|
235 | 234 | :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/wfs_builtinconfiguration/cs/program.cs" id="Snippet1":::
|
236 | 235 |
|
|
266 | 265 | <format type="text/markdown">< sample. |
| 268 | + Possible values are "DeleteNothing" and "DeleteAll". The default value is "DeleteAll". If the property is set to "DeleteNothing", the persistence provider keeps all the instance data and metadata in the persistence database after the workflow instance completes. If the property is set to "DeleteAll", the persistence provider deletes all the instance data and metadata after the workflow instance completes. |
| 269 | +
|
| 270 | +## Examples |
| 271 | +
|
| 272 | +The following code sample demonstrates using InstanceCompletionAction in a <xref:System.Activities.DurableInstancing.SqlWorkflowInstanceStore>. |
275 | 273 |
|
276 | 274 | :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/wfs_builtinconfiguration/cs/program.cs" id="Snippet1":::
|
277 | 275 |
|
|
307 | 305 | <format type="text/markdown">< sample. |
| 308 | + If the value is set to "GZip", the instance data is compressed using the GZip algorithm. |
| 309 | +
|
| 310 | +## Examples |
| 311 | +
|
| 312 | +The following code sample demonstrates using InstanceEncodingOption in a <xref:System.Activities.DurableInstancing.SqlWorkflowInstanceStore>. |
316 | 313 |
|
317 | 314 | :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/wfs_builtinconfiguration/cs/program.cs" id="Snippet1":::
|
318 | 315 |
|
|
350 | 347 | ## Remarks
|
351 | 348 | Specify what action a service host should take when a workflow service instance experiences an <xref:System.Runtime.DurableInstancing.InstanceLockedException>. The service host receives an <xref:System.Runtime.DurableInstancing.InstanceLockedException> when it tries to lock an instance that is already locked by another owner. The possible values are in the following list:
|
352 | 349 |
|
353 |
| -- **None**. The service host does not attempt to lock the instance and passes the <xref:System.Runtime.DurableInstancing.InstanceLockedException> to the caller. |
| 350 | +- **None**. The service host does not attempt to lock the instance and passes the <xref:System.Runtime.DurableInstancing.InstanceLockedException> to the caller. |
354 | 351 |
|
355 |
| -- **BasicRetry**. The service host reattempts to lock the instance with a linear retry interval and passes the exception to the caller at the end of the sequence. |
| 352 | +- **BasicRetry**. The service host reattempts to lock the instance with a linear retry interval and passes the exception to the caller at the end of the sequence. |
356 | 353 |
|
357 |
| -- **AggressiveRetry**. The service host reattempts to lock the instance with an exponentially increasing delay and passes the <xref:System.Runtime.DurableInstancing.InstanceLockedException> to the caller at the end of the sequence. The intervals are short in the beginning in an attempt to acquire the lock as quickly as possible and the intervals gets bigger with every unsuccessful attempt. |
| 354 | +- **AggressiveRetry**. The service host reattempts to lock the instance with an exponentially increasing delay and passes the <xref:System.Runtime.DurableInstancing.InstanceLockedException> to the caller at the end of the sequence. The intervals are short in the beginning in an attempt to acquire the lock as quickly as possible and the intervals gets bigger with every unsuccessful attempt. |
358 | 355 |
|
359 |
| - |
360 |
| - |
361 |
| -## Examples |
362 |
| - The following code sample demonstrates using InstanceLockedExceptionAction in a <xref:System.Activities.DurableInstancing.SqlWorkflowInstanceStore>. This example is from the [Built-in Configuration](/dotnet/framework/windows-workflow-foundation/samples/built-in-configuration) sample. |
| 356 | +## Examples |
| 357 | +
|
| 358 | +The following code sample demonstrates using InstanceLockedExceptionAction in a <xref:System.Activities.DurableInstancing.SqlWorkflowInstanceStore>. |
363 | 359 |
|
364 | 360 | :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/wfs_builtinconfiguration/cs/program.cs" id="Snippet1":::
|
365 | 361 |
|
|
467 | 463 | <remarks>
|
468 | 464 | <format type="text/markdown">< sample. |
| 466 | +## Example |
| 467 | +
|
| 468 | +The following code sample demonstrates using Promote in a <xref:System.Activities.DurableInstancing.SqlWorkflowInstanceStore>. |
472 | 469 |
|
473 | 470 | :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/wfs_sqlstoreextensibility/cs/program.cs" id="Snippet1":::
|
474 | 471 |
|
|
516 | 513 |
|
517 | 514 | When a workflow host receives this event, it executes the <xref:System.Activities.DurableInstancing.TryLoadRunnableWorkflowCommand> against the instance store to load the instance into the memory.
|
518 | 515 |
|
519 |
| - The type of the property is TimeSpan and the value is of the form "hh:mm:ss". The minimum value is "00:00:01" (1 sec). If omitted, defaults to "00:00:05" (5 secs). This parameter is an optional parameter. |
520 |
| - |
521 |
| - |
522 |
| - |
523 |
| -## Examples |
524 |
| - The following code sample demonstrates using RunnableInstancesDetectionPeriod in a <xref:System.Activities.DurableInstancing.SqlWorkflowInstanceStore>. This example is from the [Built-in Configuration](/dotnet/framework/windows-workflow-foundation/samples/built-in-configuration) sample. |
| 516 | + The type of the property is TimeSpan and the value is of the form "hh:mm:ss". The minimum value is "00:00:01" (1 sec). If omitted, defaults to "00:00:05" (5 secs). This parameter is an optional parameter. |
| 517 | +
|
| 518 | +## Examples |
| 519 | +
|
| 520 | +The following code sample demonstrates using RunnableInstancesDetectionPeriod in a <xref:System.Activities.DurableInstancing.SqlWorkflowInstanceStore>. |
525 | 521 |
|
526 | 522 | :::code language="csharp" source="~/snippets/csharp/VS_Snippets_CFX/wfs_builtinconfiguration/cs/program.cs" id="Snippet1":::
|
527 | 523 |
|
|
0 commit comments