React to API change in DependencyInjection

This commit is contained in:
mikary 2015-07-07 14:40:20 -07:00
parent e332375f0e
commit bbd57217f2
1 changed files with 1 additions and 1 deletions

View File

@ -82,7 +82,7 @@ namespace Microsoft.AspNet.DataProtection
/// Registrations are additive. The factory is registered as <see cref="ServiceLifetime.Singleton"/>.
/// </remarks>
public DataProtectionConfiguration AddKeyEscrowSink<TImplementation>()
where TImplementation : IKeyEscrowSink
where TImplementation : class, IKeyEscrowSink
{
Services.AddSingleton<IKeyEscrowSink, TImplementation>();
return this;