This repository was archived by the owner on Dec 13, 2018. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
src/Microsoft.AspNetCore.Authentication Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 3
3
4
4
using System ;
5
5
using Microsoft . AspNetCore . Authentication ;
6
+ using Microsoft . Extensions . DependencyInjection . Extensions ;
7
+ using Microsoft . Extensions . ObjectPool ;
6
8
7
9
namespace Microsoft . Extensions . DependencyInjection
8
10
{
@@ -12,7 +14,7 @@ namespace Microsoft.Extensions.DependencyInjection
12
14
public static class AuthenticationServiceCollectionExtensions
13
15
{
14
16
/// <summary>
15
- /// Adds authentication services to the specified <see cref="IServiceCollection" />.
17
+ /// Adds authentication services to the specified <see cref="IServiceCollection" />.
16
18
/// </summary>
17
19
/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
18
20
/// <returns>A reference to this instance after the operation has completed.</returns>
@@ -25,11 +27,13 @@ public static IServiceCollection AddAuthentication(this IServiceCollection servi
25
27
26
28
services . AddWebEncoders ( ) ;
27
29
services . AddDataProtection ( ) ;
30
+ services . TryAddSingleton < ObjectPoolProvider , DefaultObjectPoolProvider > ( ) ;
31
+
28
32
return services ;
29
33
}
30
34
31
35
/// <summary>
32
- /// Adds authentication services to the specified <see cref="IServiceCollection" />.
36
+ /// Adds authentication services to the specified <see cref="IServiceCollection" />.
33
37
/// </summary>
34
38
/// <param name="services">The <see cref="IServiceCollection" /> to add services to.</param>
35
39
/// <param name="configureOptions">An action delegate to configure the provided <see cref="SharedAuthenticationOptions"/>.</param>
You can’t perform that action at this time.
0 commit comments