C# Class Platform.PlatformClient

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

Méthodes publiques

Méthode 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

Méthode 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 méthode

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.
Résultat IRawEventStoreClient

ConnectToEventStoreAsReadOnly() public static méthode

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
Résultat IRawEventStoreClient

ConnectToViewStorage() public static méthode

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
Résultat ViewClient