I added a Singleton Class that contains multi-threading lock and a unique instance called _sourceInstance. It's a dictionary that basically stores all the data source providers and their urls. In my opinion, this change can make it easier to know whether the data source is valid or not. Hope this helps you!
I added a Singleton Class that contains multi-threading lock and a unique instance called _sourceInstance. It's a dictionary that basically stores all the data source providers and their urls. In my opinion, this change can make it easier to know whether the data source is valid or not. Hope this helps you!