Search Results for

    Show / Hide Table of Contents

    Class ImageVaultCommonConfigUtilHostedService

    Initiates the LogUtil upon startup

    Inheritance
    System.Object
    ImageVaultCommonConfigUtilHostedService
    Implements
    Microsoft.Extensions.Hosting.IHostedService
    Namespace: ImageVault.Common.Extensions.DependencyInjection
    Assembly: ImageVault.Common.dll
    Syntax
    public class ImageVaultCommonConfigUtilHostedService : Object

    Constructors

    ImageVaultCommonConfigUtilHostedService(ILogger<ImageVaultCommonConfigUtilHostedService>, IOptions<ImageVaultCommonOptions>)

    Creates the service

    Declaration
    public ImageVaultCommonConfigUtilHostedService(ILogger<ImageVaultCommonConfigUtilHostedService> logger, IOptions<ImageVaultCommonOptions> options)
    Parameters
    Type Name Description
    Microsoft.Extensions.Logging.ILogger<ImageVaultCommonConfigUtilHostedService> logger
    Microsoft.Extensions.Options.IOptions<ImageVaultCommonOptions> options

    Methods

    StartAsync(CancellationToken)

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

    StopAsync(CancellationToken)

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

    Implements

    Microsoft.Extensions.Hosting.IHostedService

    Extension Methods

    EnumExtensions.GetNames<TEnum>(TEnum)
    In This Article
    Back to top (c) Meriworks 2002-2022