Azure / Azure/azure-functions-host
Use of obsolete IApplicationLifetime interface
- Dominant language
- C#
- Stars
- 2k
- Forks
- 482
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 36
Description
This repository [references](https://github.com/Azure/azure-functions-host/blob/4e3265b12afb733450793ae3f49d36472ce446bf/src/WebJobs.Script.WebHost/WebJobsApplicationBuilderExtension.cs#L18) the `IApplicationLifetime` interface, [which is obsolete and will be removed in the future](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.hosting.iapplicationlifetime?view=aspnetcore-6.0). The recommended alternative is `IHostApplicationLifetime` interface, which appears to have the same properties and methods as `IApplicationLifetime` (see [here](https://docs.microsoft.com/en-us/dotnet/api/microsoft.extensions.hosting.ihostapplicationlifetime?view=dotnet-plat-ext-6.0) and [here](https://docs.microsoft.com/en-us/dotnet/api/microsoft.aspnetcore.hosting.iapplicationlifetime?view=aspnetcore-6.0)).
Contributor guide
Research direction
Start with src/WebJobs.Script.WebHost/WebJobsApplicationBuilderExtension.cs at the referenced IApplicationLifetime usage, then compare the linked obsolete and recommended API documentation. Confirm the lifetime dependency uses IHostApplicationLifetime and verify that the repository no longer references the obsolete interface.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- backend
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100