public void Delete(string name, Action <IDeleteWriter> action) { if (!string.IsNullOrEmpty(name)) { using (IDbConnection connection = EnsureConnection()) { using (DeleteItemBuilder builder = new DeleteItemBuilder(connection, name)) { action(builder); builder.Complete(); } } } }
public void Delete(string name, Action <IDeleteWriter> action) { if (!string.IsNullOrEmpty(name)) { DeleteItemBuilder builder = new DeleteItemBuilder(_domainName, name); if (action != null) { action(builder); } if (!builder.IsEmpty) { _service.ExecuteWithExpectation(builder); } } }
public void Delete(string name, Action<IDeleteWriter> action) { if (!string.IsNullOrEmpty(name)) { DeleteItemBuilder builder = new DeleteItemBuilder(_domainName, name); if (action != null) { action(builder); } if (!builder.IsEmpty) { _service.ExecuteWithExpectation(builder); } } }