Fix LogEntries: collection was modified exception (#309)

* _options.LogEntries.ToArray()

* .

* update error message
This commit is contained in:
Stef Heyenrath
2019-08-10 16:46:53 +02:00
committed by GitHub
parent 19dd9e113e
commit 65688ee7d3
9 changed files with 44 additions and 12 deletions

View File

@@ -77,8 +77,8 @@ namespace WireMock
NextState = nextState;
}
/// <inheritdoc cref="IMapping.ResponseToAsync" />
public async Task<ResponseMessage> ResponseToAsync(RequestMessage requestMessage)
/// <inheritdoc cref="IMapping.ProvideResponseAsync" />
public async Task<ResponseMessage> ProvideResponseAsync(RequestMessage requestMessage)
{
return await Provider.ProvideResponseAsync(requestMessage, Settings);
}