Show / Hide Table of Contents

Class WpfLifetime

Listens for WPF Application.Current.Exit.

Inheritance
System.Object
WpfLifetime
Implements
Microsoft.Extensions.Hosting.IHostLifetime
System.IDisposable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Injecter.Hosting.Wpf
Assembly: Injecter.Hosting.Wpf.dll
Syntax
public sealed class WpfLifetime : IHostLifetime, IDisposable

Constructors

| Improve this Doc View Source

WpfLifetime(IOptions<WpfLifeTimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>)

Declaration
public WpfLifetime(IOptions<WpfLifeTimeOptions> options, IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, IOptions<HostOptions> hostOptions)
Parameters
Type Name Description
Microsoft.Extensions.Options.IOptions<WpfLifeTimeOptions> options
Microsoft.Extensions.Hosting.IHostEnvironment environment
Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime
Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.HostOptions> hostOptions
| Improve this Doc View Source

WpfLifetime(IOptions<WpfLifeTimeOptions>, IHostEnvironment, IHostApplicationLifetime, IOptions<HostOptions>, ILoggerFactory)

Declaration
public WpfLifetime(IOptions<WpfLifeTimeOptions> options, IHostEnvironment environment, IHostApplicationLifetime applicationLifetime, IOptions<HostOptions> hostOptions, ILoggerFactory loggerFactory)
Parameters
Type Name Description
Microsoft.Extensions.Options.IOptions<WpfLifeTimeOptions> options
Microsoft.Extensions.Hosting.IHostEnvironment environment
Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime
Microsoft.Extensions.Options.IOptions<Microsoft.Extensions.Hosting.HostOptions> hostOptions
Microsoft.Extensions.Logging.ILoggerFactory loggerFactory

Methods

| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

StopAsync(CancellationToken)

Declaration
public Task StopAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task
| Improve this Doc View Source

WaitForStartAsync(CancellationToken)

Declaration
public Task WaitForStartAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken
Returns
Type Description
System.Threading.Tasks.Task

Implements

Microsoft.Extensions.Hosting.IHostLifetime
System.IDisposable
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX