Skip to content
This repository has been archived by the owner on Oct 17, 2018. It is now read-only.

Add an abstraction for pre-initializing DataProtection #239

Closed
wants to merge 1 commit into from

Conversation

natemcmaster
Copy link
Contributor

Companion PR aspnet/Hosting#1096

Should reduce delay on first request caused by initializing data protection (#193) and avoid thread pool starvation when server starts under high load ( #233 ).

… might need to run early in an application lifecycle
Copy link
Contributor

@ajaybhargavb ajaybhargavb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

[Fact]
public void LoadsKeyRingDuringInitialization()
{
var mock = new Mock<IKeyRingProvider>();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

//Arrange //Act //Assert

@natemcmaster
Copy link
Contributor Author

We decided to flip the Hosting <-> DataProtection dependency order (again) so that we don't have to do this.

See #240

@natemcmaster natemcmaster deleted the namc/startup branch June 2, 2017 19:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants