public void Execute(FluentRegistration registration) { var types = FromAssembly.GetTypes(); foreach (var type in types) { #if NET35 if (type.IsInterface) { continue; } if (type.IsAbstract) { continue; } #else if (type.GetTypeInfo().IsInterface) { continue; } if (type.GetTypeInfo().IsAbstract) { continue; } #endif var typeRegistration = new Registration { Service = type, Implementor = type, }; registration.store.AddRegistration(typeRegistration); } }
public AutoConfiguration(FluentRegistration registration) { this.registration = registration; }