/// <summary> /// Equals /// </summary> /// <param name="obj">Object</param> /// <returns>Return true if are equals</returns> public override bool Equals(FuzzingInputBase obj) { if (obj is RandomFuzzingInput o) { return(Equals(o)); } return(false); }
/// <summary> /// Constructor /// </summary> /// <param name="config">Mutations</param> /// <param name="stream">Stream</param> /// <param name="storeCurrentStream">Store current stream</param> public FuzzingStream(FuzzingConfigBase config, FuzzingInputBase stream, Stream storeCurrentStream = null) : this(config, stream == null ? throw new ArgumentNullException(nameof(stream)) : stream.GetStream(), storeCurrentStream) { if (config == null) { throw new ArgumentNullException(nameof(config)); } InputId = stream.Id; }
public ActionResult <bool> Add([FromBody] FuzzingInputBase entry) { _server.Server.Inputs.Add(entry.Id, new FuzzerStat <FuzzingInputBase>(entry)); _server.Server.UpdateInputs(); return(true); }