Search Results for

    Show / Hide Table of Contents

    DependencyInjection

    Dependency injection module for python

    Import and usage of the module

    Calling any static methods

    Using simple import simplic statement

    import simplic
    
    # usage
    simplic.DependencyInjection.METHOD(...)
    

    Using simple from simplic import ... statement

    from simplic import DependencyInjection
    
    # usage
    DependencyInjection.METHOD(...)
    

    Properties

    Methods

    resolve

    Get instance of a unity service

    Name Summary
    type Interface type

    Returns: Instance of an unity service

    resolve_with_key

    Get instance of a unity service

    Name Summary
    type Interface type
    key Optional key

    Returns: Instance of an unity service

    register_instance

    Register instance

    Name Summary
    type Interface type
    key Key
    instance Python class instance
    • Improve this Doc
    In This Article
    Back to top Copyright © 2018 SIMPLIC GmbH
    Generated by DocFx