ipjohnson / Grace

Grace is a feature rich dependency injection container library
MIT License
336 stars 33 forks source link

Asynchronous Exports / CtorParam #263

Closed silkfire closed 4 years ago

silkfire commented 4 years ago

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.