public object Any(RemoveEntry request) { return(new RemoveEntryResponse { Result = Redis.RemoveEntry(request.Keys.ToArray()) }); }
private void RemoveButton_Click(object sender, RoutedEventArgs e) { if (RemoveEntry != null) { RemoveEntry.Invoke(this, Entry); } }
private void OnRemoveEntryClick(object sender, EventArgs e) { RemoveEntry handler = this.OnRemoveEntry; if (handler != null) { handler(this.friendNumber); } }
public async Task Reset() { var query = new GetWhitelistEntries(); var result = await _apiClient.QueryAsync(query); foreach (var item in result.Entries) { var cmd = new RemoveEntry { Id = item.Id }; await _apiClient.SendAsync(cmd); } }
public async Task Should_be_able_to_delete_an_entry() { var cmd1 = new AddEntry { DomainName = "report4.coderr.io", ApplicationIds = new[] { 1 }, IpAddresses = new[] { "1.2.3.4" } }; await _apiClient.SendAsync(cmd1); var entry = await GetEntry(x => x.DomainName == cmd1.DomainName); var cmd = new RemoveEntry { Id = entry.Id }; await _apiClient.SendAsync(cmd); await GetEmptyList(); }