Update nullability of options providers
This commit is contained in:
parent
d29df110d2
commit
98f48f3933
|
|
@ -14,7 +14,7 @@ internal class WriteHttpResponseContentTypeOptionsProvider : IActivityPropertyOp
|
|||
_options = options.Value;
|
||||
}
|
||||
|
||||
public ValueTask<object> GetOptionsAsync(PropertyInfo property, CancellationToken cancellationToken = default)
|
||||
public ValueTask<object?> GetOptionsAsync(PropertyInfo property, CancellationToken cancellationToken = default)
|
||||
{
|
||||
return new(GetOptions(property));
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,5 +10,5 @@ public interface IActivityPropertyOptionsProvider
|
|||
/// <summary>
|
||||
/// Returns options for the specified property.
|
||||
/// </summary>
|
||||
ValueTask<object> GetOptionsAsync(PropertyInfo property, CancellationToken cancellationToken = default);
|
||||
ValueTask<object?> GetOptionsAsync(PropertyInfo property, CancellationToken cancellationToken = default);
|
||||
}
|
||||
|
|
@ -6,7 +6,7 @@ namespace Elsa.JavaScript.Activities;
|
|||
|
||||
internal class RunJavaScriptOptionsProvider : IActivityPropertyOptionsProvider
|
||||
{
|
||||
public ValueTask<object> GetOptionsAsync(PropertyInfo property, CancellationToken cancellationToken = default)
|
||||
public ValueTask<object?> GetOptionsAsync(PropertyInfo property, CancellationToken cancellationToken = default)
|
||||
{
|
||||
return new(new CodeEditorOptions
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue