Skip to content

Commit

Permalink
Avoid breaking change
Browse files Browse the repository at this point in the history
  • Loading branch information
anderson-joyle committed Feb 4, 2025
1 parent acc0535 commit 4d64ac7
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,11 +217,17 @@ internal string GetFunctionName()
return _info.Name;
}

[Obsolete("Soon to be removed.")]
public FormulaValue Invoke(IServiceProvider serviceProvider, FormulaValue[] args)
{
return InvokeAsync(serviceProvider, args, CancellationToken.None).Result;
}

public async Task<FormulaValue> InvokeAsync(IServiceProvider serviceProvider, FormulaValue[] args, CancellationToken cancellationToken)
{
return await InvokeAsync(serviceProvider, (IReadOnlyList<FormulaValue>)args, cancellationToken).ConfigureAwait(false);
}

public async Task<FormulaValue> InvokeAsync(IServiceProvider serviceProvider, IReadOnlyList<FormulaValue> args, CancellationToken cancellationToken)
{
var info = Scan();
Expand Down

0 comments on commit 4d64ac7

Please sign in to comment.