use container resolver in custom type provider