diff --git a/src/modules/Elsa.Workflows.Core/Contexts/ActivityExecutionContext.cs b/src/modules/Elsa.Workflows.Core/Contexts/ActivityExecutionContext.cs
index f545b0881..5393a9f80 100644
--- a/src/modules/Elsa.Workflows.Core/Contexts/ActivityExecutionContext.cs
+++ b/src/modules/Elsa.Workflows.Core/Contexts/ActivityExecutionContext.cs
@@ -198,7 +198,7 @@ public partial class ActivityExecutionContext : IExecutionContext, IDisposable
/// An optional callback to invoke when the activity completes.
/// An optional tag to associate with the activity execution.
/// An optional list of variables to declare with the activity execution.
- public ValueTask ScheduleActivityAsync(IActivity? activity, ActivityCompletionCallback? completionCallback, object? tag = default, IEnumerable? variables = default)
+ public ValueTask ScheduleActivityAsync(IActivity? activity, ActivityCompletionCallback? completionCallback, object? tag = null, IEnumerable? variables = null)
{
var options = new ScheduleWorkOptions
{
@@ -214,7 +214,7 @@ public partial class ActivityExecutionContext : IExecutionContext, IDisposable
///
/// The activity to schedule.
/// The options used to schedule the activity.
- public async ValueTask ScheduleActivityAsync(IActivity? activity, ScheduleWorkOptions? options = default)
+ public async ValueTask ScheduleActivityAsync(IActivity? activity, ScheduleWorkOptions? options = null)
{
await ScheduleActivityAsync(activity, this, options);
}
@@ -225,7 +225,7 @@ public partial class ActivityExecutionContext : IExecutionContext, IDisposable
/// The activity to schedule.
/// The activity execution context that owns the scheduled activity.
/// The options used to schedule the activity.
- public async ValueTask ScheduleActivityAsync(IActivity? activity, ActivityExecutionContext? owner, ScheduleWorkOptions? options = default)
+ public async ValueTask ScheduleActivityAsync(IActivity? activity, ActivityExecutionContext? owner, ScheduleWorkOptions? options = null)
{
var activityNode = activity != null
? WorkflowExecutionContext.FindNodeByActivity(activity) ?? throw new InvalidOperationException("The specified activity is not part of the workflow.")
@@ -239,7 +239,7 @@ public partial class ActivityExecutionContext : IExecutionContext, IDisposable
/// The activity node to schedule.
/// The activity execution context that owns the scheduled activity.
/// The options used to schedule the activity.
- public async ValueTask ScheduleActivityAsync(ActivityNode? activityNode, ActivityExecutionContext? owner = default, ScheduleWorkOptions? options = default)
+ public async ValueTask ScheduleActivityAsync(ActivityNode? activityNode, ActivityExecutionContext? owner = null, ScheduleWorkOptions? options = null)
{
if (this.GetIsBackgroundExecution())
{
@@ -261,7 +261,7 @@ public partial class ActivityExecutionContext : IExecutionContext, IDisposable
Variables = options?.Variables?.ToList(),
Input = options?.Input
}
- : default
+ : null
};
var scheduledActivities = this.GetBackgroundScheduledActivities().ToList();
@@ -303,7 +303,7 @@ public partial class ActivityExecutionContext : IExecutionContext, IDisposable
/// The callback to invoke when the activities complete.
/// An optional tag to associate with the activity execution.
/// An optional list of variables to declare with the activity execution.
- public ValueTask ScheduleActivities(IEnumerable activities, ActivityCompletionCallback? completionCallback, object? tag = default, IEnumerable? variables = default)
+ public ValueTask ScheduleActivities(IEnumerable activities, ActivityCompletionCallback? completionCallback, object? tag = null, IEnumerable? variables = null)
{
var options = new ScheduleWorkOptions
{
@@ -319,7 +319,7 @@ public partial class ActivityExecutionContext : IExecutionContext, IDisposable
///
/// The activities to schedule.
/// The options used to schedule the activities.
- public async ValueTask ScheduleActivities(IEnumerable activities, ScheduleWorkOptions? options = default)
+ public async ValueTask ScheduleActivities(IEnumerable activities, ScheduleWorkOptions? options = null)
{
foreach (var activity in activities)
await ScheduleActivityAsync(activity, options);
@@ -331,7 +331,7 @@ public partial class ActivityExecutionContext : IExecutionContext, IDisposable
/// The payloads to create bookmarks for.
/// An optional callback that is invoked when the bookmark is resumed.
/// Whether or not the activity instance ID should be included in the bookmark payload.
- public void CreateBookmarks(IEnumerable