public static void ConfigureServices(IServiceCollection collection)
 {
     _host = new ComposerHost();
     _host.LoadPlugins();
     foreach (var type in _host.RegisteredInterfaces)
     {
         collection.AddTransient(type, provider => AutofacDependencyResolver.Current.GetService(type));
     }
 }