Search Results for

    Show / Hide Table of Contents

    Interface IDependencyResolver

    Interface abstraction for working with DI providers in Akka.NET without being bound to any specific implementation.

    Namespace: Akka.DependencyInjection
    Assembly: Akka.DependencyInjection.dll
    Syntax
    public interface IDependencyResolver
    Remarks

    See ServiceProviderDependencyResolver for a reference implementation.

    Methods

    | Edit this page View Source

    CreateScope()

    Declaration
    IResolverScope CreateScope()
    Returns
    Type Description
    IResolverScope
    | Edit this page View Source

    GetService(Type)

    Declaration
    object GetService(Type type)
    Parameters
    Type Name Description
    Type type
    Returns
    Type Description
    object
    | Edit this page View Source

    GetService<T>()

    Declaration
    T GetService<T>()
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T
    | Edit this page View Source

    Props(Type)

    Used to dynamically instantiate an actor where some of the constructor arguments are populated via dependency injection and others are not.

    Declaration
    Props Props(Type type)
    Parameters
    Type Name Description
    Type type

    The type of actor to instantiate.

    Returns
    Type Description
    Props

    A new Props instance which uses DI internally.

    Remarks

    YOU ARE RESPONSIBLE FOR MANAGING THE LIFECYCLE OF YOUR OWN DEPENDENCIES. AKKA.NET WILL NOT ATTEMPT TO DO IT FOR YOU.

    | Edit this page View Source

    Props(Type, params object[])

    Used to dynamically instantiate an actor where some of the constructor arguments are populated via dependency injection and others are not.

    Declaration
    Props Props(Type type, params object[] args)
    Parameters
    Type Name Description
    Type type

    The type of actor to instantiate.

    object[] args

    Optional. Any constructor arguments that will be passed into the actor's constructor directly without being resolved by DI first.

    Returns
    Type Description
    Props

    A new Props instance which uses DI internally.

    Remarks

    YOU ARE RESPONSIBLE FOR MANAGING THE LIFECYCLE OF YOUR OWN DEPENDENCIES. AKKA.NET WILL NOT ATTEMPT TO DO IT FOR YOU.

    | Edit this page View Source

    Props<T>(params object[])

    Used to dynamically instantiate an actor where some of the constructor arguments are populated via dependency injection and others are not.

    Declaration
    Props Props<T>(params object[] args) where T : ActorBase
    Parameters
    Type Name Description
    object[] args

    Optional. Any constructor arguments that will be passed into the actor's constructor directly without being resolved by DI first.

    Returns
    Type Description
    Props

    A new Props instance which uses DI internally.

    Type Parameters
    Name Description
    T

    The type of actor to instantiate.

    Remarks

    YOU ARE RESPONSIBLE FOR MANAGING THE LIFECYCLE OF YOUR OWN DEPENDENCIES. AKKA.NET WILL NOT ATTEMPT TO DO IT FOR YOU.

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET