-
Notifications
You must be signed in to change notification settings - Fork 316
Conversation
cc @halter73 |
{ | ||
} | ||
|
||
public ServiceCollection(IConfiguration configuration) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's the replacement for this? We're using it in our functional tests to do dirty, filthy, despicable things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The only use case for passing IConfiguration
into ServiceCollection
is to be able to replace registered services with types specified from config - https://github.com/aspnet/DependencyInjection/blob/dev/src/Microsoft.Framework.DependencyInjection/ServiceDescriber.cs#L125-L133. We don't use this feature in Mvc's functional tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@rynowak We don't depend on the ServiceCollection taking a IConfiguration in Mvc. The behavior should remain unchanged once we make this change.
8eb26fc
to
ffd0070
Compare
@halter73 updated with |
/// <summary> | ||
/// Adds a sequence of <see cref="IServiceDescriptor"/> to this instance. | ||
/// </summary> | ||
/// <param name="descriptor">The <see cref="IEnumerable{T}"/> or <see cref="IServiceDescriptor"/>s to add.</param> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is "or" supposed to be "of"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes
Once my comments are addressed, |
ffd0070
to
cfa2cc6
Compare
IServiceDescriptor
Fixes #116 #117