in scenarios/aca-internal/bicep/sample-apps/jobs/src/aca-jobs/MessageProcessor.cs [40:49]
private static int Fibonacci(int n)
{
if (n < 0) throw new ArgumentException("The number must be a positive integer", nameof(n));
return n switch
{
0 => 0,
1 => 1,
_ => Fibonacci(n - 1) + Fibonacci(n - 2)
};
}