Skip to content
This repository was archived by the owner on Mar 19, 2019. It is now read-only.

React to Logging API changes #175

Merged
merged 1 commit into from
Jan 27, 2016
Merged

React to Logging API changes #175

merged 1 commit into from
Jan 27, 2016

Conversation

BrennanConroy
Copy link
Member

@@ -153,7 +153,7 @@ internal unsafe Request(RequestContext httpContext, NativeRequestContext memoryB

if (_requestContext.Logger.IsEnabled(LogLevel.Debug))
{
RequestContext.Logger.LogDebug(new ReceiveRequestLogContext(this));
RequestContext.Logger.LogDebug(new ReceiveRequestLogContext(this).ToString());
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you calling ToString on the structure?


public IEnumerator<KeyValuePair<string, object>> GetEnumerator()
{
return new List<KeyValuePair<string, object>>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Enumrable.Range(0,7).Select(i=>this[i]) ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or for (i++) { yield return this[i]; }

@BrennanConroy BrennanConroy merged commit 247c46d into dev Jan 27, 2016
@BrennanConroy BrennanConroy deleted the brecon/logapi branch January 27, 2016 23:47
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants