Skip to content

Commit 6fa9cd7

Browse files
committed
deprecated IApplicationLifetime -> IHostApplicationLifetime
1 parent 8f18c5b commit 6fa9cd7

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/MicroBatchFramework.WebHosting/BatchEngineHostingExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using Microsoft.AspNetCore.Builder;
44
using Microsoft.AspNetCore.Hosting;
55
using Microsoft.Extensions.DependencyInjection;
6+
using Microsoft.Extensions.Hosting;
67
using Microsoft.Extensions.Logging;
78
using System;
89
using System.Collections.Generic;
@@ -66,7 +67,7 @@ public static IApplicationBuilder UseBatchEngineSwaggerMiddleware(this IApplicat
6667

6768
public class DefaultStartup
6869
{
69-
public void Configure(IApplicationBuilder app, IApplicationLifetime lifetime)
70+
public void Configure(IApplicationBuilder app, IHostApplicationLifetime lifetime)
7071
{
7172
var interceptor = app.ApplicationServices.GetService<IBatchInterceptor>();
7273
var provider = app.ApplicationServices.GetService<IServiceProvider>();

src/MicroBatchFramework/EmptyHostedService.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ namespace MicroBatchFramework
66
{
77
internal class EmptyHostedService : IHostedService
88
{
9-
readonly IApplicationLifetime appLifetime;
9+
readonly IHostApplicationLifetime appLifetime;
1010

11-
public EmptyHostedService(IApplicationLifetime appLifetime)
11+
public EmptyHostedService(IHostApplicationLifetime appLifetime)
1212
{
1313
this.appLifetime = appLifetime;
1414
}

0 commit comments

Comments
 (0)