Skip to content

Commit 5f90338

Browse files
committed
Passing cancellation token into the ScriptHost start call.
1 parent 4dd6288 commit 5f90338

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/WebJobs.Script/Description/CSharp/FunctionValueLoader.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
namespace Microsoft.Azure.WebJobs.Script.Description
1111
{
1212
/// <summary>
13-
/// Lazily loads the function value, guaranteeing single execution, and exposing
13+
/// Lazily loads the function value, guaranteeing single execution, and exposing
1414
/// a <see cref="Task{MethodInfo}"/> value that completes when the provided
1515
/// factory completes the function creation.
1616
/// </summary>

src/WebJobs.Script/Host/ScriptHostManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public ScriptHost Instance
8181
// write any function initialization errors to the log file
8282
LogErrors(newInstance);
8383

84-
newInstance.Start();
84+
newInstance.StartAsync(cancellationToken).Wait();
8585
lock (_liveInstances)
8686
{
8787
_liveInstances.Add(newInstance);

0 commit comments

Comments
 (0)