Esempio n. 1
0
 private static void RegisterEffect(IServiceCollection serviceCollection, DiscoveredEffectInfo discoveredEffectInfo)
 {
     // Register the effect class against the generic IEffect<> interface
     serviceCollection.AddSingleton(
         serviceType: discoveredEffectInfo.EffectInterfaceGenericType,
         implementationType: discoveredEffectInfo.ImplementingType);
 }
Esempio n. 2
0
 private static void RegisterEffect(IServiceCollection serviceCollection, DiscoveredEffectInfo discoveredEffectInfo)
 {
     // Register the effect class
     serviceCollection.AddSingleton(discoveredEffectInfo.ImplementingType);
 }