/// Parses the <paramref name="data"/> provided into either a <see cref="HttpRequestMessage"/> or <see cref="HttpResponseMessage"/> object.
/// </summary>
@ -46,7 +44,7 @@ namespace Rssdp.Infrastructure
if(data.Length==0)thrownewArgumentException("data cannot be an empty string.",nameof(data));
if(!LineTerminators.Any(data.Contains))thrownewArgumentException("data is not a valid request, it does not contain any CRLF/LF terminators.",nameof(data));
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Performance", "CA1804:RemoveUnusedLocals", MessageId = "t", Justification = "Capturing task to local variable removes compiler warning, task is not otherwise required.")]
privatevoidListenToSocket(ISocketsocket)
{
// Tasks are captured to local variables even if we don't use them just to avoid compiler warnings.