Follow up on HostFactoryResolver changes (#54052)
authorDavid Fowler <davidfowl@gmail.com>
Fri, 11 Jun 2021 15:29:39 +0000 (08:29 -0700)
committerGitHub <noreply@github.com>
Fri, 11 Jun 2021 15:29:39 +0000 (08:29 -0700)
commitb88b34c6e592229e092b873f2fc66b380a286c8d
treee573b5b06f70930c5e9188bcb30e41e23da724ac
parent75ede83214700ba49b70c0ac746c3541ef219a91
Follow up on HostFactoryResolver changes (#54052)

- Cleaned up the comments to explain what ResolveHostFactory does.
- Added entry point completed callback to let callers know when the entry point code is done running.
- Added tests for the various callbacks.
src/libraries/Microsoft.Extensions.HostFactoryResolver/src/HostFactoryResolver.cs
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/HostFactoryResolverTests.cs
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/Microsoft.Extensions.HostFactoryResolver.Tests.csproj
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/NoSpecialEntryPointPatternBuildsThenThrows/NoSpecialEntryPointPatternBuildsThenThrows.csproj [new file with mode: 0644]
src/libraries/Microsoft.Extensions.HostFactoryResolver/tests/NoSpecialEntryPointPatternBuildsThenThrows/Program.cs [new file with mode: 0644]