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

public Delete ( IPEndPoint endPoint, string name, bool deleteEmittedStreams, EventStore.ClientAPI.SystemData.UserCredentials userCredentials = null ) : System.Threading.Tasks.Task
endPoint System.Net.IPEndPoint
name string
deleteEmittedStreams bool
userCredentials EventStore.ClientAPI.SystemData.UserCredentials
Результат System.Threading.Tasks.Task
 /// <summary>
 /// Asynchronously deletes a projection
 /// </summary>
 /// <param name="name">The name of the projection.</param>
 /// <param name="deleteEmittedStreams">Whether to delete the streams that were emitted by this projection.</param>
 /// <param name="userCredentials">Credentials for a user with permission to delete a projection</param>
 /// <returns>A task representing the operation.</returns>
 public Task DeleteAsync(string name, bool deleteEmittedStreams, UserCredentials userCredentials = null)
 {
     Ensure.NotNullOrEmpty(name, "name");
     return(_client.Delete(_httpEndPoint, name, deleteEmittedStreams, userCredentials, _httpSchema));
 }
Пример #2
0
 /// <summary>
 /// Asynchronously deletes a projection
 /// </summary>
 /// <param name="name">The name of the projection.</param>
 /// <param name="userCredentials">Credentials for a user with permission to delete a projection</param>
 /// <returns>A task representing the operation.</returns>
 public Task DeleteAsync(string name, UserCredentials userCredentials = null)
 {
     Ensure.NotNullOrEmpty(name, "name");
     return(_client.Delete(_httpEndPoint, name, userCredentials));
 }