Beispiel #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);
 }
Beispiel #2
0
 private static void RegisterEffect(IServiceCollection serviceCollection, DiscoveredEffectInfo discoveredEffectInfo)
 {
     // Register the effect class
     serviceCollection.AddSingleton(discoveredEffectInfo.ImplementingType);
 }