Search Results for

    Show / Hide Table of Contents

    Struct ServiceScope

    An IServiceScope implementation that implements IDisposable.

    Implements
    IServiceScope
    IDisposable
    Inherited Members
    ValueType.Equals(object)
    object.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    Namespace: nanoFramework.DependencyInjection
    Assembly: nanoFramework.DependencyInjection.dll
    Syntax
    public readonly struct ServiceScope : IServiceScope, IDisposable

    Constructors

    ServiceScope(IServiceScope)

    Initializes a new instance of the ServiceScope struct. Wraps an instance of IServiceScope.

    Declaration
    public ServiceScope(IServiceScope serviceScope)
    Parameters
    Type Name Description
    IServiceScope serviceScope

    The IServiceScope instance to wrap.

    Properties

    ServiceProvider

    The IServiceProvider used to resolve dependencies from the scope.

    Declaration
    public IServiceProvider ServiceProvider { get; }
    Property Value
    Type Description
    IServiceProvider

    Methods

    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Declaration
    public void Dispose()

    Implements

    IServiceScope
    IDisposable
    In this article
    • Constructors
      • ServiceScope(IServiceScope)
    • Properties
      • ServiceProvider
    • Methods
      • Dispose()
    • Implements
    Back to top Copyright © 2023 nanoFramework Contributors
    Generated by DocFX