Search Results for

    Show / Hide Table of Contents

    Class MorpheoNode

    Main hosted service representing a Morpheo Node. Manages the lifecycle of the web server and network discovery interactions.

    Inheritance
    object
    MorpheoNode
    Implements
    IHostedService
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Morpheo.Core
    Assembly: Morpheo.Core.dll
    Syntax
    public class MorpheoNode : IHostedService

    Constructors

    | Edit this page View Source

    MorpheoNode(MorpheoOptions, INetworkDiscovery, IMorpheoServer, ILogger<MorpheoNode>)

    Declaration
    public MorpheoNode(MorpheoOptions options, INetworkDiscovery discovery, IMorpheoServer server, ILogger<MorpheoNode> logger)
    Parameters
    Type Name Description
    MorpheoOptions options
    INetworkDiscovery discovery
    IMorpheoServer server
    ILogger<MorpheoNode> logger

    Methods

    | Edit this page View Source

    StartAsync(CancellationToken)

    Triggered when the application host is ready to start the service.

    Declaration
    public Task StartAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Indicates that the start process has been aborted.

    Returns
    Type Description
    Task

    A Task that represents the asynchronous Start operation.

    | Edit this page View Source

    StopAsync(CancellationToken)

    Triggered when the application host is performing a graceful shutdown.

    Declaration
    public Task StopAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken

    Indicates that the shutdown process should no longer be graceful.

    Returns
    Type Description
    Task

    A Task that represents the asynchronous Stop operation.

    Implements

    IHostedService
    • Edit this page
    • View Source
    In this article
    Back to top Copyright © 2025 DEHER Rémi - Propulsé par .NET 10