C# 클래스 Platform.PlatformClient

Entry point for configuring access to the core of DataPlatform (both views and data streams).
파일 보기 프로젝트 열기: Lokad/lokad-data-platform

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
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.

메소드 상세

ConnectToEventStore() 공개 정적인 메소드

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.
리턴 IRawEventStoreClient

ConnectToEventStoreAsReadOnly() 공개 정적인 메소드

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
리턴 IRawEventStoreClient

ConnectToViewStorage() 공개 정적인 메소드

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
리턴 ViewClient