Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
drop the deprecated IApplicationLifetime retrieval and pragma suppres…
…sion; call app.UseWebJobsScriptHost()
  • Loading branch information
v-amakhan committed Mar 24, 2026
commit 1b26cd868f6a015efb6bef14826c5bdefa5bfa6c
7 changes: 1 addition & 6 deletions src/Cli/func/Actions/HostActions/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,12 +157,7 @@ public void Configure(IApplicationBuilder app)
}
});
}
#pragma warning disable CS0618 // IApplicationLifetime is obsolete
IApplicationLifetime applicationLifetime = app.ApplicationServices
.GetRequiredService<IApplicationLifetime>();

app.UseWebJobsScriptHost(applicationLifetime);
#pragma warning restore CS0618 // Type is obsolete
app.UseWebJobsScriptHost();
}

private class ThrowingDependencyValidator : DependencyValidator
Expand Down
Loading