ipjohnson / Grace

Grace is a feature rich dependency injection container library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Asynchronous Exports / CtorParam

silkfire opened this issue · comments

I've seem to run into an issue I don't know how to solve.

I need to provide a parameter for a dependency, but to create it, I need to run an async method.
Doing this though registers it as a Task<T>, causing an exception as Grace doesn't know how to resolve T. Does the library support this scenario?

Basically, Export Task<T> but import it as T.