public void AddressDelete(IDhcpServerPacket Packet, AddressDeleteControlCodes ControlCode, DhcpServerIpAddress ServerAddress, DhcpServerIpAddress LeaseAddress, ref bool StopPropagation) { try { var sb = new StringBuilder(); sb.AppendLine("ADDRESS DELETE:"); sb.AppendLine($" Transaction Id: {Packet.TransactionId}"); sb.AppendLine($" Parameters:"); sb.AppendLine($" Control Code: {ControlCode}"); sb.AppendLine($" Lease Address: {LeaseAddress}"); sb.AppendLine("---------------------"); WriteLog(sb.ToString()); } catch (Exception ex) { WriteLog($"ADDRESS DELETE ERROR: {ex.Message} [{ex.GetType().Name}]"); WriteLog(ex.StackTrace); throw; } }
public void AddressDelete(IDhcpServerPacket Packet, AddressDeleteControlCodes ControlCode, DhcpServerIpAddress ServerAddress, DhcpServerIpAddress LeaseAddress, ref bool StopPropagation) { addressDeleteHandler.AddressDelete(Packet, ControlCode, ServerAddress, LeaseAddress, ref StopPropagation); }