Revert "Merged release/2.1"

This reverts commit cf45fac634, reversing
changes made to 313772ef03.
This commit is contained in:
David Fowler 2018-04-04 15:02:20 -07:00
parent cf45fac634
commit 924272ad1a
1 changed files with 4 additions and 3 deletions

View File

@ -381,8 +381,6 @@ namespace Microsoft.AspNetCore.Http.Connections
// Establish the connection
var connection = _manager.CreateConnection();
EnsureConnectionStateInternal(connection, options);
// Set the Connection ID on the logging scope so that logs from now on will have the
// Connection ID metadata set.
logScope.ConnectionId = connection.ConnectionId;
@ -604,6 +602,8 @@ namespace Microsoft.AspNetCore.Http.Connections
return null;
}
EnsureConnectionStateInternal(connection, options);
return connection;
}
@ -630,7 +630,6 @@ namespace Microsoft.AspNetCore.Http.Connections
if (StringValues.IsNullOrEmpty(connectionId))
{
connection = _manager.CreateConnection();
EnsureConnectionStateInternal(connection, options);
}
else if (!_manager.TryGetConnection(connectionId, out connection))
{
@ -640,6 +639,8 @@ namespace Microsoft.AspNetCore.Http.Connections
return null;
}
EnsureConnectionStateInternal(connection, options);
return connection;
}