Introduces an interface for Content Delivery and Preview as the two should be interchangable.
I created a new Service as I wanted to enforce the use of API Keys through the constructor and not add yet another option in the constructor of the Content Delivery API. With the IContentDeliveryService in place it should be possible to easily switch between using the Content Delivery API and the Preview API - the Content and Media parts are the same between the two services.
Introduces an interface for Content Delivery and Preview as the two should be interchangable.
I created a new Service as I wanted to enforce the use of API Keys through the constructor and not add yet another option in the constructor of the Content Delivery API. With the
IContentDeliveryService
in place it should be possible to easily switch between using the Content Delivery API and the Preview API - the Content and Media parts are the same between the two services.