C# Class EventStore.ClientAPI.Projections.ProjectionsManager

API for managing projections in the Event Store through C# code. Communicates with the Event Store over the RESTful API.
Afficher le fichier Open project: EventStore/EventStore Class Usage Examples

Méthodes publiques

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

Private Methods

Méthode Description
ListAllAsStringAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ListContinuousAsStringAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task
ListOneTimeAsStringAsync ( EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : Task

Method Details

AbortAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

CreateContinuousAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

CreateContinuousAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

CreateOneTimeAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

CreateTransientAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

DeleteAsync() public méthode

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
Résultat System.Threading.Tasks.Task

DeleteAsync() public méthode

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
Résultat System.Threading.Tasks.Task

DisableAsync() public méthode

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.
Résultat System.Threading.Tasks.Task

EnableAsync() public méthode

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
Résultat System.Threading.Tasks.Task

GetPartitionResultAsync() public méthode

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

GetPartitionStateAsync() public méthode

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

GetQueryAsync() public méthode

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

GetResultAsync() public méthode

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

GetStateAsync() public méthode

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

GetStatisticsAsync() public méthode

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

GetStatusAsync() public méthode

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

ListAllAsync() public méthode

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

ListContinuousAsync() public méthode

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

ListOneTimeAsync() public méthode

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

ProjectionsManager() public méthode

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

UpdateQueryAsync() public méthode

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.
Résultat System.Threading.Tasks.Task