WPFViewService needs to take in a ITypeResolver reference in the constructor.
The purpose is to eliminate possible invalid cast exceptions if yout host app makes heavy use of plugins that need to be loaded at runtime.
See Related https://natemcmaster.com/blog/2018/07/25/netcore-plugins/
The wpfviewservice isn't following solid principles specifically single responsibility. It's employing different techniques for type discovery