IApplicationLifetime Arabirim

Tanım

Dikkat

This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.

Dikkat

IApplicationLifetime has been deprecated. Use Microsoft.Extensions.Hosting.IHostApplicationLifetime instead.

Tüketicilerin düzgün bir kapatma sırasında temizleme gerçekleştirmesine olanak tanır.

Bu tür eski ve gelecekteki bir sürümde kaldırılacak. Önerilen alternatif Microsoft.Extensions.Hosting.IHostApplicationLifetime'dır.

public interface class IApplicationLifetime
public interface IApplicationLifetime
[System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.", false)]
public interface IApplicationLifetime
[System.Obsolete("IApplicationLifetime has been deprecated. Use Microsoft.Extensions.Hosting.IHostApplicationLifetime instead.")]
public interface IApplicationLifetime
type IApplicationLifetime = interface
[<System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is Microsoft.Extensions.Hosting.IHostApplicationLifetime.", false)>]
type IApplicationLifetime = interface
[<System.Obsolete("IApplicationLifetime has been deprecated. Use Microsoft.Extensions.Hosting.IHostApplicationLifetime instead.")>]
type IApplicationLifetime = interface
Public Interface IApplicationLifetime
Türetilmiş
Öznitelikler

Özellikler

ApplicationStarted
Geçersiz.
Geçersiz.

Uygulama konağı tam olarak başlatıldığında ve düzgün bir kapatmayı beklemek üzere olduğunda tetiklenir.

ApplicationStopped
Geçersiz.
Geçersiz.

Uygulama konağı düzgün bir kapatma gerçekleştirdiğinde tetiklenir. Tüm istekler bu noktada tamamlanmalıdır. Bu olay tamamlanana kadar kapatma işlemi engellenir.

ApplicationStopping
Geçersiz.
Geçersiz.

Uygulama konağı düzgün bir kapatma gerçekleştirdiğinde tetiklenir. İstekler hala uçuşta olabilir. Bu olay tamamlanana kadar kapatma işlemi engellenir.

Yöntemler

StopApplication()
Geçersiz.
Geçersiz.

Geçerli uygulamanın sonlandırilmesini istemektedir.

Şunlara uygulanır