Rename DefaultBrowserServiceProvider->BrowserServiceProvider for consistency

This commit is contained in:
Steve Sanderson 2018-02-23 10:50:35 +00:00
parent 0bb32ad628
commit f684203721
2 changed files with 6 additions and 6 deletions

View File

@ -21,7 +21,7 @@ namespace Microsoft.AspNetCore.Blazor.Browser.Rendering
/// <summary> /// <summary>
/// Constructs an instance of <see cref="BrowserRenderer"/>. /// Constructs an instance of <see cref="BrowserRenderer"/>.
/// </summary> /// </summary>
public BrowserRenderer(): this(new DefaultBrowserServiceProvider()) public BrowserRenderer(): this(new BrowserServiceProvider())
{ {
} }

View File

@ -11,22 +11,22 @@ namespace Microsoft.AspNetCore.Blazor.Browser.Services
/// An implementation of <see cref="IServiceProvider"/> configured with /// An implementation of <see cref="IServiceProvider"/> configured with
/// default services suitable for use in a browser environment. /// default services suitable for use in a browser environment.
/// </summary> /// </summary>
public class DefaultBrowserServiceProvider : IServiceProvider public class BrowserServiceProvider : IServiceProvider
{ {
private readonly IServiceProvider _underlyingProvider; private readonly IServiceProvider _underlyingProvider;
/// <summary> /// <summary>
/// Constructs an instance of <see cref="DefaultBrowserServiceProvider"/>. /// Constructs an instance of <see cref="BrowserServiceProvider"/>.
/// </summary> /// </summary>
public DefaultBrowserServiceProvider(): this(null) public BrowserServiceProvider(): this(null)
{ {
} }
/// <summary> /// <summary>
/// Constructs an instance of <see cref="DefaultBrowserServiceProvider"/>. /// Constructs an instance of <see cref="BrowserServiceProvider"/>.
/// </summary> /// </summary>
/// <param name="configure">A callback that can be used to configure the <see cref="IServiceCollection"/>.</param> /// <param name="configure">A callback that can be used to configure the <see cref="IServiceCollection"/>.</param>
public DefaultBrowserServiceProvider(Action<IServiceCollection> configure) public BrowserServiceProvider(Action<IServiceCollection> configure)
{ {
var serviceCollection = new ServiceCollection(); var serviceCollection = new ServiceCollection();
AddDefaultServices(serviceCollection); AddDefaultServices(serviceCollection);