umbraco / Umbraco.Headless.Client.Net

.NET Client Library and Samples for the Umbraco headless cms Cloud Service called Umbraco Heartcore
https://umbraco.com/products/umbraco-heartcore/
13 stars 14 forks source link

Implements a service to use for accessing the Preview API. #28

Closed sitereactor closed 4 years ago

sitereactor commented 4 years ago

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.

sitereactor commented 4 years ago

@rasmusjp click merge to :shipit: 😉