Skip to content
This repository was archived by the owner on Jan 2, 2023. It is now read-only.

Change IDependency to [DependencyAttribute] #2

@Ermesx

Description

@Ermesx

To unify experience all activities when people use this library should come to use attributes.

For instance defining lifetime scope is done by inherit interface but replace dependency is done by add attribute over class

Rules:

  1. Attribute over instance class is major than attribute over interface.
  2. If there is more than one lifetime scope from interfaces create registration with their scopes independently
  3. If there is more than one lifetime scope from inherit classes hierarchy choose scope from last object in hierarchy which has defined lifetime scope.

Todo:

  • Change lifetime interfaces to attributes
  • Change process of scan assemblies to recognize attributes
  • Add extensions to extract lifetime scope from type
    • Interfaces types
    • Classes types

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions