do not register regacy providers which are always pre-registered
Merge pull request #1393 from yugangw-msft/noregister

do not register legacy providers which are always pre-registered