use generic type in unity.config