private ServiceDescriptor.ServiceSelector SelectService(Type repositoryServiceType)
{
return delegate(Type type, Type baseType)
{
Type[] interfaces = type.GetInterfaces();
foreach (Type @interface in interfaces)
{
if ([email protected])
continue;
if ([email protected]().Equals(repositoryServiceType))
continue;
return new Type[] { @interface };
}
return null;
};
}