Search Results for

    Show / Hide Table of Contents

    Enum ServiceLifetime

    Specifies the lifetime of a service in an IServiceCollection.

    Namespace: nanoFramework.DependencyInjection
    Assembly: nanoFramework.DependencyInjection.dll
    Syntax
    public enum ServiceLifetime

    Fields

    Name Description
    Scoped

    Specifies that a single instance of the service will be created within a scope.

    Singleton

    Specifies that a single instance of the service will be created.

    Transient

    Specifies that a new instance of the service will be created every time it is requested.

    In this article
    • Fields
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX