Table of Contents

Class ShutdownConfigurator

Namespace
Tlabs.Config
Assembly
Tlabs.SrvBase.dll

Setup a process-exit shutdown handler

public class ShutdownConfigurator : IConfigurator<MiddlewareContext>
Inheritance
ShutdownConfigurator
Implements
Inherited Members
Extension Methods

Remarks

By default default IHostApplicationLifetime is only listening on Ctrl-C... (On windows closing a terminal window using the [x] is not recognized)

This also listens on ProcessExit which handles even windows close...

Constructors

ShutdownConfigurator()

public ShutdownConfigurator()

Methods

AddTo(MiddlewareContext, IConfiguration)

Adds a general ProcessExit handler..

public void AddTo(MiddlewareContext mware, IConfiguration cfg)

Parameters

mware MiddlewareContext
cfg IConfiguration