C# Класс EventStore.ClientAPI.Projections.ProjectionsManager

API for managing projections in the Event Store through C# code. Communicates with the Event Store over the RESTful API.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
AbortAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously disables a projection.

CreateContinuousAsync ( string name, string query, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously creates a continuous projection.

CreateContinuousAsync ( string name, string query, bool trackEmittedStreams, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously creates a continuous projection.

CreateOneTimeAsync ( string query, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously creates a one-time query.

CreateTransientAsync ( string name, string query, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously creates a one-time query.

DeleteAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously deletes a projection

DeleteAsync ( string name, bool deleteEmittedStreams, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously deletes a projection

DisableAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously aborts and disables a projection without writing a checkpoint.

EnableAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously enables a projection

GetPartitionResultAsync ( string name, string partitionId, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task

Asynchronously gets the state of a projection for a specified partition.

GetPartitionStateAsync ( string name, string partitionId, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task

Asynchronously gets the state of a projection for a specified partition.

GetQueryAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task

Asynchronously gets the status of a query.

GetResultAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task

Asynchronously gets the state of a projection.

GetStateAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task

Asynchronously gets the state of a projection.

GetStatisticsAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task

Asynchronously gets the statistics of a projection.

GetStatusAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task

Asynchronously gets the status of a projection.

ListAllAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task>

Asynchronously lists this status of all projections.

ListContinuousAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task>

Synchronously lists this status of all continuous projections.

ListOneTimeAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task>

Asynchronously lists this status of all one-time projections.

ProjectionsManager ( ILogger log, IPEndPoint httpEndPoint, System.TimeSpan operationTimeout ) : System

Creates a new instance of ProjectionsManager.

UpdateQueryAsync ( string name, string query, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task

Asynchronously updates the definition of a query.

Приватные методы

Метод Описание
ListAllAsStringAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ListContinuousAsStringAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ListOneTimeAsStringAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task

Описание методов

AbortAsync() публичный Метод

Asynchronously disables a projection.
public AbortAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
name string The name of the projection.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for a user with permission to disable a projection.
Результат System.Threading.Tasks.Task

CreateContinuousAsync() публичный Метод

Asynchronously creates a continuous projection.
public CreateContinuousAsync ( string name, string query, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
name string The name of the projection.
query string The JavaScript source code for the query.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for a user with permission to create a query.
Результат System.Threading.Tasks.Task

CreateContinuousAsync() публичный Метод

Asynchronously creates a continuous projection.
public CreateContinuousAsync ( string name, string query, bool trackEmittedStreams, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
name string The name of the projection.
query string The JavaScript source code for the query.
trackEmittedStreams bool Whether the streams emitted by this projection should be tracked.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for a user with permission to create a query.
Результат System.Threading.Tasks.Task

CreateOneTimeAsync() публичный Метод

Asynchronously creates a one-time query.
public CreateOneTimeAsync ( string query, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
query string The JavaScript source code for the query.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for a user with permission to create a query.
Результат System.Threading.Tasks.Task

CreateTransientAsync() публичный Метод

Asynchronously creates a one-time query.
public CreateTransientAsync ( string name, string query, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
name string A name for the query.
query string The JavaScript source code for the query.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for a user with permission to create a query.
Результат System.Threading.Tasks.Task

DeleteAsync() публичный Метод

Asynchronously deletes a projection
public DeleteAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
name string The name of the projection.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for a user with permission to delete a projection
Результат System.Threading.Tasks.Task

DeleteAsync() публичный Метод

Asynchronously deletes a projection
public DeleteAsync ( string name, bool deleteEmittedStreams, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
name string The name of the projection.
deleteEmittedStreams bool Whether to delete the streams that were emitted by this projection.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for a user with permission to delete a projection
Результат System.Threading.Tasks.Task

DisableAsync() публичный Метод

Asynchronously aborts and disables a projection without writing a checkpoint.
public DisableAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
name string The name of the projection.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for a user with permission to disable a projection.
Результат System.Threading.Tasks.Task

EnableAsync() публичный Метод

Asynchronously enables a projection
public EnableAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
name string The name of the projection.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for a user with permission to enable a projection
Результат System.Threading.Tasks.Task

GetPartitionResultAsync() публичный Метод

Asynchronously gets the state of a projection for a specified partition.
public GetPartitionResultAsync ( string name, string partitionId, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
name string The name of the projection.
partitionId string The id of the partition.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task

GetPartitionStateAsync() публичный Метод

Asynchronously gets the state of a projection for a specified partition.
public GetPartitionStateAsync ( string name, string partitionId, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
name string The name of the projection.
partitionId string The id of the partition.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task

GetQueryAsync() публичный Метод

Asynchronously gets the status of a query.
public GetQueryAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
name string The name of the query.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task

GetResultAsync() публичный Метод

Asynchronously gets the state of a projection.
public GetResultAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
name string The name of the projection.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task

GetStateAsync() публичный Метод

Asynchronously gets the state of a projection.
public GetStateAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
name string The name of the projection.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task

GetStatisticsAsync() публичный Метод

Asynchronously gets the statistics of a projection.
public GetStatisticsAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
name string The name of the projection.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task

GetStatusAsync() публичный Метод

Asynchronously gets the status of a projection.
public GetStatusAsync ( string name, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
name string The name of the projection.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task

ListAllAsync() публичный Метод

Asynchronously lists this status of all projections.
public ListAllAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task>
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task>

ListContinuousAsync() публичный Метод

Synchronously lists this status of all continuous projections.
public ListContinuousAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task>
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task>

ListOneTimeAsync() публичный Метод

Asynchronously lists this status of all one-time projections.
public ListOneTimeAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task>
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат Task>

ProjectionsManager() публичный Метод

Creates a new instance of ProjectionsManager.
public ProjectionsManager ( ILogger log, IPEndPoint httpEndPoint, System.TimeSpan operationTimeout ) : System
log ILogger An instance of to use for logging.
httpEndPoint System.Net.IPEndPoint HTTP endpoint of an Event Store server.
operationTimeout System.TimeSpan
Результат System

UpdateQueryAsync() публичный Метод

Asynchronously updates the definition of a query.
public UpdateQueryAsync ( string name, string query, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
name string The name of the query.
query string The JavaScript source code of the query.
userCredentials EventStore.ClientAPI.SystemData.UserCredentials Credentials for the operation.
Результат System.Threading.Tasks.Task