Minor cleanup

This commit is contained in:
Sipke Schoorstra 2021-03-04 12:06:04 +01:00
parent bd23810972
commit 149916c73d
3 changed files with 3 additions and 3 deletions

View file

@ -16,6 +16,6 @@ namespace Elsa.Services
yield return workflow;
}
protected virtual ValueTask<IEnumerable<IWorkflowBlueprint>> OnGetWorkflowsAsync(CancellationToken cancellationToken) => new ValueTask<IEnumerable<IWorkflowBlueprint>>(new IWorkflowBlueprint[0]);
protected virtual ValueTask<IEnumerable<IWorkflowBlueprint>> OnGetWorkflowsAsync(CancellationToken cancellationToken) => new(new IWorkflowBlueprint[0]);
}
}

View file

@ -49,7 +49,7 @@ namespace Elsa.Activities.ControlFlow
context.WorkflowInstance.Scopes = new SimpleStack<ActivityScope>(scopes.AsEnumerable().Reverse());
// Return output
// Return output.
var output = new FinishOutput(OutputValue, OutcomeNames);
return Output(output);

View file

@ -70,7 +70,7 @@ namespace Elsa.Services
if (prop == null)
{
_logger.LogWarning("Could not find the specified property '{PropertyName}' for activity type {ActivityTypeName}. The most likely reason is that the activity property was renamed/removed/refactored after the workflow definition was created", property.Name, activityType.Type.Name);
_logger.LogWarning("Could not find the specified property '{PropertyName}' for activity type {ActivityTypeName}. Was the activity property renamed/removed/refactored after the workflow definition was created?", property.Name, activityType.Type.Name);
continue;
}