C# Класс Platform.PlatformClient

Entry point for configuring access to the core of DataPlatform (both views and data streams).
Показать файл Открыть проект

Открытые методы

Метод Описание
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