public RiakBucketProperties RemovePostCommitHook(IRiakPostCommitHook commitHook) { if (PostCommitHooks != null) { PostCommitHooks.RemoveAll(x => Equals(x, commitHook)); } return(this); }
/// <summary> /// Remove a post-commit hook from the bucket properties. /// </summary> /// <param name="commitHook">The <see cref="IRiakPreCommitHook"/> to remove.</param> /// <returns>A reference to the current properties object.</returns> /// <remarks> /// Pre/Post-commit hooks are not typically modified. /// </remarks> public RiakBucketProperties RemovePostCommitHook(IRiakPostCommitHook commitHook) { if (PostCommitHooks != null) { PostCommitHooks.RemoveAll(x => Equals(x, commitHook)); if (PostCommitHooks.Count == 0) { HasPostcommit = false; } } return(this); }