Skip to content

More control around tracking transient instances and their disposal #5

@drewnoakes

Description

@drewnoakes

Otion to track transients via WeakReference<T> collection and dispose along with container.

Requestor can assume ownership of a newly created transient T instance by depending upon Unique<T> (which skips tracking the reference, but also throws for singletons), after which it must ensure correct disposal of the served transient, in its Dispose method or otherwise.

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