Search Results for

    Show / Hide Table of Contents

    Class ProcessSchedulerService

    Background service that periodically checks and executes scheduled process steps for events.

    Inheritance
    object
    BackgroundService
    ProcessSchedulerService
    Implements
    IHostedService
    IDisposable
    Inherited Members
    BackgroundService.StartAsync(CancellationToken)
    BackgroundService.StopAsync(CancellationToken)
    BackgroundService.Dispose()
    BackgroundService.ExecuteTask
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: OEMS.Core.Infrastructure.BackgroundServices
    Assembly: OEMS.Core.dll
    Syntax
    public class ProcessSchedulerService : BackgroundService, IHostedService, IDisposable

    Constructors

    ProcessSchedulerService(ILogger<ProcessSchedulerService>, IServiceProvider)

    Initializes a new instance of the ProcessSchedulerService class.

    Declaration
    public ProcessSchedulerService(ILogger<ProcessSchedulerService> logger, IServiceProvider serviceProvider)
    Parameters
    Type Name Description
    ILogger<ProcessSchedulerService> logger

    The logger for recording service operations.

    IServiceProvider serviceProvider

    The service provider for resolving dependencies.

    Methods

    ExecuteAsync(CancellationToken)

    This method is called when the IHostedService starts. The implementation should return a task that represents the lifetime of the long running operation(s) being performed.

    Declaration
    protected override Task ExecuteAsync(CancellationToken stoppingToken)
    Parameters
    Type Name Description
    CancellationToken stoppingToken

    Triggered when StopAsync(CancellationToken) is called.

    Returns
    Type Description
    Task

    A Task that represents the long running operations.

    Overrides
    BackgroundService.ExecuteAsync(CancellationToken)
    Remarks

    See Worker Services in .NET for implementation guidelines.

    Implements

    IHostedService
    IDisposable
    In this article
    Back to top Generated by DocFX