How To Query for an Asynchronous Type Registration |
This topic details the steps necessary for checking whether a type is registered for asynchronous resolution with a Unity container.
Import the Unity Container Async Extensions namespace:
using Ditto.AsyncInit.Unity;
Query the container for type registration:
if (container.IsAsyncTypeRegistered<IUniversalAnswerService>()) { //... }