public async Task Teardown() { await _conn.DeletePersistentSubscriptionAsync(_streamName, _groupName, DefaultData.AdminCredentials); _conn.Close(); _conn.Dispose(); }
/// <summary> /// Deletes the persistent subscription. /// </summary> /// <param name="stream">The stream.</param> /// <param name="groupName">Name of the group.</param> /// <returns></returns> public async Task DeletePersistentSubscription(String stream, String groupName) { // Get the connection IEventStoreConnection connection = await this.GetEventStoreConnection(); await connection.DeletePersistentSubscriptionAsync(stream, groupName, this.UserCredentials); }
public override async Task <DeletePersistentSubscriptionResponse> DeletePersistentSubscription( DeletePersistentSubscriptionRequest request, ServerCallContext context) { await _eventStoreConnection.DeletePersistentSubscriptionAsync(request.Stream, request.GroupName, request.UserCredentials.ToUserCredentials()); return(new DeletePersistentSubscriptionResponse()); }
public void Teardown() { _conn.DeletePersistentSubscriptionAsync(_streamName, _groupName, DefaultData.AdminCredentials).Wait(); _conn.Close(); _conn.Dispose(); }
/// <inheritdoc/> public override async Task UnsubscribeAsync(IEventStoreConnection connection, CancellationToken cancellationToken = default) { await connection.DeletePersistentSubscriptionAsync(this.StreamId, this.DurableName); }
public async Task DeleteActivitliesStream() { await conn.DeletePersistentSubscriptionAsync(Constants.StreamNameActivities, Constants.GroupNameActivities, creds); }