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