diff --git a/src/Alba/Security/AuthenticationStub.cs b/src/Alba/Security/AuthenticationStub.cs index 9028ef6a..b0c41b7b 100644 --- a/src/Alba/Security/AuthenticationStub.cs +++ b/src/Alba/Security/AuthenticationStub.cs @@ -36,7 +36,7 @@ IHostBuilder IAlbaExtension.Configure(IHostBuilder builder) services.AddSingleton(this); services.AddAuthentication("Test") .AddScheme( - "Test", o => {}); + "Test", _ => {}); }); } diff --git a/src/Alba/Serialization/FormatterSerializer.cs b/src/Alba/Serialization/FormatterSerializer.cs index 3dd019bf..76149326 100644 --- a/src/Alba/Serialization/FormatterSerializer.cs +++ b/src/Alba/Serialization/FormatterSerializer.cs @@ -30,7 +30,7 @@ public Stream Write(T body) var writer = new StreamWriter(stream); var outputContext = - new OutputFormatterWriteContext(stubContext, (s, e) => writer, typeof(T), body); + new OutputFormatterWriteContext(stubContext, (_, _) => writer, typeof(T), body); _output.WriteAsync(outputContext).GetAwaiter().GetResult(); return stream; @@ -56,7 +56,7 @@ public T Read(ScenarioResult response) if (buffer.Length == 0) throw new EmptyResponseException(); - var inputContext = new InputFormatterContext(standinContext, typeof(T).Name, new ModelStateDictionary(), metadata, (s, e) => new StreamReader(s)); + var inputContext = new InputFormatterContext(standinContext, typeof(T).Name, new ModelStateDictionary(), metadata, (s, _) => new StreamReader(s)); var result = _input.ReadAsync(inputContext).GetAwaiter().GetResult(); if (result.HasError) @@ -98,7 +98,7 @@ public async Task ReadAsync(ScenarioResult response) if (buffer.Length == 0) throw new EmptyResponseException(); - var inputContext = new InputFormatterContext(standinContext, typeof(T).Name, new ModelStateDictionary(), metadata, (s, e) => new StreamReader(s)); + var inputContext = new InputFormatterContext(standinContext, typeof(T).Name, new ModelStateDictionary(), metadata, (s, _) => new StreamReader(s)); var result = await _input.ReadAsync(inputContext); if (result.HasError)