public void Delete(IConfigurable instance) { IPListEntry entry = (IPListEntry)instance; RpcClientHelper.Invoke(delegate { this.connection.Remove(((IPListEntryIdentity)entry.Identity).Index, entry.ListType == IPListEntryType.Block); return(null); }); }
public void Save(IConfigurable instance) { IPListEntry entry = (IPListEntry)instance; int num = (int)RpcClientHelper.Invoke(() => this.connection.Add(entry.ListType == IPListEntryType.Block, entry.ToIPFilterRange())); if (num == -1) { throw new DataSourceOperationException(Strings.IPListEntryExists(entry.IPRange.ToString())); } entry.Identity = new IPListEntryIdentity(num); }
private IPFilterRange[] GetItems(int startIndex, int typeFilter, IPvxAddress address, int count) { return((IPFilterRange[])RpcClientHelper.Invoke(() => this.connection.GetItems(startIndex, typeFilter, (ulong)(address >> 64), (ulong)address, count))); }