Show / Hide Table of Contents

Class ConsoleAppShutdownAwaiter

A console application shutdown awaiter.

Inheritance
System.Object
DefaultAppShutdownAwaiter
ConsoleAppShutdownAwaiter
Implements
IAppShutdownAwaiter
Inherited Members
DefaultAppShutdownAwaiter.IsAttended
DefaultAppShutdownAwaiter.WaitForShutdownSignalAsync(CancellationToken)
DefaultAppShutdownAwaiter.RunUnattendedAsync(CancellationToken)
DefaultAppShutdownAwaiter.HandleShutdownSignal()
DefaultAppShutdownAwaiter.GetUnattendedResult()
DefaultAppShutdownAwaiter.GetAttendedResult()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Kephas.Application.Console.Application
Assembly: Kephas.Application.Console.dll
Syntax
[OverridePriority(Priority.BelowNormal)]
public class ConsoleAppShutdownAwaiter : DefaultAppShutdownAwaiter, IAppShutdownAwaiter

Constructors

| Improve this Doc View Source

ConsoleAppShutdownAwaiter(ICommandShell, IEventHub)

Initializes a new instance of the ConsoleAppShutdownAwaiter class.

Declaration
public ConsoleAppShutdownAwaiter(ICommandShell shell, IEventHub eventHub)
Parameters
Type Name Description
ICommandShell shell

The shell.

IEventHub eventHub

The event hub.

Methods

| Improve this Doc View Source

RunAttendedAsync(CancellationToken)

Executes the attended asynchronous operation.

Declaration
protected override Task RunAttendedAsync(CancellationToken cancellationToken)
Parameters
Type Name Description
System.Threading.CancellationToken cancellationToken

A token that allows processing to be cancelled.

Returns
Type Description
System.Threading.Tasks.Task

An asynchronous result.

Overrides
DefaultAppShutdownAwaiter.RunAttendedAsync(CancellationToken)

Implements

IAppShutdownAwaiter

Extension Methods

DynamicObjectExtensions.SetPropertyValue(Object, String, Object)
DynamicObjectExtensions.TrySetPropertyValue(Object, String, Object)
DynamicObjectExtensions.GetPropertyValue(Object, String)
DynamicObjectExtensions.TryGetPropertyValue(Object, String, out Object)
DynamicObjectExtensions.GetRuntimeTypeInfo(Object)
DynamicObjectExtensions.ToDynamic(Object)
DynamicObjectExtensions.ToExpando(Object)
BehaviorValue.ToBehaviorValue<TValue>(TValue)
CollectionExtensions.AddRange<T, TItem>(T, IEnumerable<TItem>)
LoggingExtensions.GetLogger(Object, IContext)
TypeExtensions.GetAbstractType(Object)
TypeExtensions.GetAbstractTypeInfo(Object)
ReflectionHelper.GetTypeInfo(Object)
EntityEntryExtensions.TryGetAttachedEntityEntry(Object)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX