Method Initialize
Initialize(string, string, string, Action<ContentUpdateState>)
Initialize the content delivery system.
Declaration
public static void Initialize(string remoteUrlRoot, string cachePath, string initialContentSet, Action<ContentDeliveryGlobalState.ContentUpdateState> updateStateFunc)
Parameters
Type | Name | Description |
---|---|---|
string | remoteUrlRoot | The remote url root in the form of "https://hostname.com/pathToContent/". If this parameter is not specified, content is assumed to be local. |
string | cachePath | The full local path of the content cache. This must be a directory that the application has read and write access to. |
string | initialContentSet | The initial set of content to download. The content sets are given names during the publish process and by default everything is added to the "all" set. |
Action<ContentDeliveryGlobalState.ContentUpdateState> | updateStateFunc | Callback action that will get called whenever the content update state changes. |