C# Class Platform.PlatformClient

Entry point for configuring access to the core of DataPlatform (both views and data streams).
Show file Open project: Lokad/lokad-data-platform

Public Methods

Method Description
ConnectToEventStore ( string storageConfiguration, string storeId, string platformServerEndpoint ) : IRawEventStoreClient

Creates a connection to event store, which can both read and write events.

ConnectToEventStoreAsReadOnly ( string storageConfiguration, string storeId ) : IRawEventStoreClient

Creates a connection to event store, which can only both read and write events. Platform API connection is not needed.

ConnectToViewStorage ( string storageConfiguration, string containerName ) : ViewClient

Creates a connection to view storage

Private Methods

Method Description
AzureActionPolicy ( Queue exceptions ) : bool

Retry policy to deal with transient errors on Windows Azure Storage. Defines when to give up on retry.

FileActionPolicy ( Queue exceptions ) : bool

Retry policy to deal with transient errors on filesystem. Defines when to give up on retry.

Method Details

ConnectToEventStore() public static method

Creates a connection to event store, which can both read and write events.
public static ConnectToEventStore ( string storageConfiguration, string storeId, string platformServerEndpoint ) : IRawEventStoreClient
storageConfiguration string Storage configuration (either local file path /// or ).
storeId string Id of the store to connect to
platformServerEndpoint string URL of public server API.
return IRawEventStoreClient

ConnectToEventStoreAsReadOnly() public static method

Creates a connection to event store, which can only both read and write events. Platform API connection is not needed.
public static ConnectToEventStoreAsReadOnly ( string storageConfiguration, string storeId ) : IRawEventStoreClient
storageConfiguration string Storage configuration (either local file path /// or )
storeId string Id of the store to connect to
return IRawEventStoreClient

ConnectToViewStorage() public static method

Creates a connection to view storage
public static ConnectToViewStorage ( string storageConfiguration, string containerName ) : ViewClient
storageConfiguration string Storage configuration (either local file path /// or )
containerName string container name (directory) where to put views
return ViewClient