public DHCPv4RequestHandledEvent(Guid scopeId, DHCPv4Packet request, RequestErros error) : this(scopeId, request, DHCPv4Packet.Empty, error) { if (error == RequestErros.NoError) { throw new ArgumentException("if a request has no error, a response packet is needed"); } }
public DHCPv4RequestHandledEvent(DHCPv4Packet request, DHCPv4Packet response, RequestErros error) : base(request, response, error == RequestErros.NoError) { if (error != RequestErros.ScopeNotFound) { throw new ArgumentException("a scope id has to be specified if an error different from 'ScopeNotFound' is used"); } Error = error; }
public DHCPv4RequestHandledEvent(Guid scopeId, DHCPv4Packet request, DHCPv4Packet response, RequestErros error) : base(scopeId, request, response, error == RequestErros.NoError) { Error = error; }
public DHCPv4RequestHandledEvent(DHCPv4Packet request, RequestErros error) : this(request, DHCPv4Packet.Empty, error) { }