Click or drag to resize

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.

  1. Import the Unity Container Async Extensions namespace:

    C#
    using Ditto.AsyncInit.Unity;
  2. Query the container for type registration:

    C#
    if (container.IsAsyncTypeRegistered<IUniversalAnswerService>())
    {
        //...
    }
See Also