From c2b3b3b39ebd490469ea6690ca37f1ffff64b42c Mon Sep 17 00:00:00 2001 From: James Craig Date: Sun, 13 Sep 2020 08:43:03 -0400 Subject: [PATCH] Package updates. --- .../Canister.Benchmarks.csproj | 2 +- TestApp/Logs/log-20200913.txt | 211 ++++++++++++++++++ TestApp/TestApp.csproj | 2 +- src/Canister.IoC/Canister.IoC.csproj | 2 +- .../Default/DefaultBootstrapper.cs | 5 +- test/Canister.Tests/Canister.Tests.csproj | 4 +- 6 files changed, 219 insertions(+), 7 deletions(-) create mode 100644 TestApp/Logs/log-20200913.txt diff --git a/Canister.Benchmarks/Canister.Benchmarks.csproj b/Canister.Benchmarks/Canister.Benchmarks.csproj index 5fa14df..1aa6759 100644 --- a/Canister.Benchmarks/Canister.Benchmarks.csproj +++ b/Canister.Benchmarks/Canister.Benchmarks.csproj @@ -6,7 +6,7 @@ - + diff --git a/TestApp/Logs/log-20200913.txt b/TestApp/Logs/log-20200913.txt new file mode 100644 index 0000000..6c8bd30 --- /dev/null +++ b/TestApp/Logs/log-20200913.txt @@ -0,0 +1,211 @@ +2020-09-13 08:42:20.888 -04:00 [Debug] [] Hosting starting +2020-09-13 08:42:21.033 -04:00 [Information] [] User profile is available. Using '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys"' as key repository and Windows DPAPI to encrypt keys at rest. +2020-09-13 08:42:21.040 -04:00 [Debug] [] Reading data from file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-8bf8a2ae-7641-46a6-a433-be31a8a90985.xml"'. +2020-09-13 08:42:21.072 -04:00 [Debug] [] Reading data from file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-a7c34057-b681-4141-9676-80a572e0e920.xml"'. +2020-09-13 08:42:21.081 -04:00 [Debug] [] Reading data from file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-b20d087c-04e7-4d81-8c62-78e728f2a9ca.xml"'. +2020-09-13 08:42:21.089 -04:00 [Debug] [] Reading data from file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-b58a5ce8-5cc2-4a33-8797-554ef26a59d6.xml"'. +2020-09-13 08:42:21.105 -04:00 [Debug] [] Found key {8bf8a2ae-7641-46a6-a433-be31a8a90985}. +2020-09-13 08:42:21.109 -04:00 [Debug] [] Found key {a7c34057-b681-4141-9676-80a572e0e920}. +2020-09-13 08:42:21.109 -04:00 [Debug] [] Found key {b20d087c-04e7-4d81-8c62-78e728f2a9ca}. +2020-09-13 08:42:21.110 -04:00 [Debug] [] Found key {b58a5ce8-5cc2-4a33-8797-554ef26a59d6}. +2020-09-13 08:42:21.117 -04:00 [Debug] [] Considering key {8bf8a2ae-7641-46a6-a433-be31a8a90985} with expiration date 2020-07-20 23:26:46Z as default key. +2020-09-13 08:42:21.117 -04:00 [Debug] [] Key {8bf8a2ae-7641-46a6-a433-be31a8a90985} is no longer under consideration as default key because it is expired, revoked, or cannot be deciphered. +2020-09-13 08:42:21.149 -04:00 [Debug] [] Forwarded activator type request from "Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlDecryptor, Microsoft.AspNetCore.DataProtection, Version=3.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" to "Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlDecryptor, Microsoft.AspNetCore.DataProtection, Culture=neutral, PublicKeyToken=adb9793829ddae60" +2020-09-13 08:42:21.151 -04:00 [Debug] [] Decrypting secret element using Windows DPAPI. +2020-09-13 08:42:21.153 -04:00 [Debug] [] Forwarded activator type request from "Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AuthenticatedEncryptorDescriptorDeserializer, Microsoft.AspNetCore.DataProtection, Version=3.1.3.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" to "Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AuthenticatedEncryptorDescriptorDeserializer, Microsoft.AspNetCore.DataProtection, Culture=neutral, PublicKeyToken=adb9793829ddae60" +2020-09-13 08:42:21.156 -04:00 [Debug] [] Opening CNG algorithm '"AES"' from provider 'null' with chaining mode CBC. +2020-09-13 08:42:21.159 -04:00 [Debug] [] Opening CNG algorithm '"SHA256"' from provider 'null' with HMAC. +2020-09-13 08:42:21.164 -04:00 [Debug] [] Repository contains no viable default key. Caller should generate a key with immediate activation. +2020-09-13 08:42:21.164 -04:00 [Debug] [] Policy resolution states that a new key should be added to the key ring. +2020-09-13 08:42:21.170 -04:00 [Information] [] Creating key {6f55d1ca-ffa6-43f2-88a6-4b4a76c20ef9} with creation date 2020-09-13 12:42:21Z, activation date 2020-09-13 12:42:21Z, and expiration date 2020-12-12 12:42:21Z. +2020-09-13 08:42:21.176 -04:00 [Debug] [] Descriptor deserializer type for key {6f55d1ca-ffa6-43f2-88a6-4b4a76c20ef9} is '"Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AuthenticatedEncryptorDescriptorDeserializer, Microsoft.AspNetCore.DataProtection, Version=3.1.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60"'. +2020-09-13 08:42:21.177 -04:00 [Debug] [] No key escrow sink found. Not writing key {6f55d1ca-ffa6-43f2-88a6-4b4a76c20ef9} to escrow. +2020-09-13 08:42:21.204 -04:00 [Debug] [] Encrypting to Windows DPAPI for current user account ("DESKTOP-TC8AK6N\craig"). +2020-09-13 08:42:21.217 -04:00 [Information] [] Writing data to file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-6f55d1ca-ffa6-43f2-88a6-4b4a76c20ef9.xml"'. +2020-09-13 08:42:21.219 -04:00 [Debug] [] Key cache expiration token triggered by '"CreateNewKey"' operation. +2020-09-13 08:42:21.219 -04:00 [Debug] [] Reading data from file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-6f55d1ca-ffa6-43f2-88a6-4b4a76c20ef9.xml"'. +2020-09-13 08:42:21.220 -04:00 [Debug] [] Reading data from file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-8bf8a2ae-7641-46a6-a433-be31a8a90985.xml"'. +2020-09-13 08:42:21.220 -04:00 [Debug] [] Reading data from file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-a7c34057-b681-4141-9676-80a572e0e920.xml"'. +2020-09-13 08:42:21.220 -04:00 [Debug] [] Reading data from file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-b20d087c-04e7-4d81-8c62-78e728f2a9ca.xml"'. +2020-09-13 08:42:21.220 -04:00 [Debug] [] Reading data from file '"C:\Users\craig\AppData\Local\ASP.NET\DataProtection-Keys\key-b58a5ce8-5cc2-4a33-8797-554ef26a59d6.xml"'. +2020-09-13 08:42:21.221 -04:00 [Debug] [] Found key {6f55d1ca-ffa6-43f2-88a6-4b4a76c20ef9}. +2020-09-13 08:42:21.221 -04:00 [Debug] [] Found key {8bf8a2ae-7641-46a6-a433-be31a8a90985}. +2020-09-13 08:42:21.221 -04:00 [Debug] [] Found key {a7c34057-b681-4141-9676-80a572e0e920}. +2020-09-13 08:42:21.221 -04:00 [Debug] [] Found key {b20d087c-04e7-4d81-8c62-78e728f2a9ca}. +2020-09-13 08:42:21.221 -04:00 [Debug] [] Found key {b58a5ce8-5cc2-4a33-8797-554ef26a59d6}. +2020-09-13 08:42:21.221 -04:00 [Debug] [] Considering key {6f55d1ca-ffa6-43f2-88a6-4b4a76c20ef9} with expiration date 2020-12-12 12:42:21Z as default key. +2020-09-13 08:42:21.222 -04:00 [Debug] [] Forwarded activator type request from "Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlDecryptor, Microsoft.AspNetCore.DataProtection, Version=3.1.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" to "Microsoft.AspNetCore.DataProtection.XmlEncryption.DpapiXmlDecryptor, Microsoft.AspNetCore.DataProtection, Culture=neutral, PublicKeyToken=adb9793829ddae60" +2020-09-13 08:42:21.224 -04:00 [Debug] [] Decrypting secret element using Windows DPAPI. +2020-09-13 08:42:21.230 -04:00 [Debug] [] Forwarded activator type request from "Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AuthenticatedEncryptorDescriptorDeserializer, Microsoft.AspNetCore.DataProtection, Version=3.1.4.0, Culture=neutral, PublicKeyToken=adb9793829ddae60" to "Microsoft.AspNetCore.DataProtection.AuthenticatedEncryption.ConfigurationModel.AuthenticatedEncryptorDescriptorDeserializer, Microsoft.AspNetCore.DataProtection, Culture=neutral, PublicKeyToken=adb9793829ddae60" +2020-09-13 08:42:21.235 -04:00 [Debug] [] Opening CNG algorithm '"AES"' from provider 'null' with chaining mode CBC. +2020-09-13 08:42:21.235 -04:00 [Debug] [] Opening CNG algorithm '"SHA256"' from provider 'null' with HMAC. +2020-09-13 08:42:21.235 -04:00 [Debug] [] Using key {6f55d1ca-ffa6-43f2-88a6-4b4a76c20ef9} as the default key. +2020-09-13 08:42:21.237 -04:00 [Debug] [] Key ring with default key {6f55d1ca-ffa6-43f2-88a6-4b4a76c20ef9} was loaded during application startup. +2020-09-13 08:42:21.593 -04:00 [Debug] [] Loaded hosting startup assembly "TestApp" +2020-09-13 08:42:21.594 -04:00 [Information] [] Application started. Press Ctrl+C to shut down. +2020-09-13 08:42:21.594 -04:00 [Information] [] Hosting environment: "Development" +2020-09-13 08:42:21.594 -04:00 [Information] [] Content root path: "D:\dev\Mine\JaCraig\Canister\TestApp" +2020-09-13 08:42:21.594 -04:00 [Debug] [] Hosting started +2020-09-13 08:42:21.661 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/ +2020-09-13 08:42:21.663 -04:00 [Debug] [] Wildcard detected, all requests with hosts will be allowed. +2020-09-13 08:42:21.666 -04:00 [Debug] [] The request path "/" does not match a supported file type +2020-09-13 08:42:21.689 -04:00 [Debug] [] 1 candidate(s) found for the request path '"/"' +2020-09-13 08:42:21.692 -04:00 [Debug] [] Endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' with route pattern '"{controller=Home}/{action=Index}/{id?}"' is valid for the request path '"/"' +2020-09-13 08:42:21.693 -04:00 [Debug] [] Request matched endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' +2020-09-13 08:42:21.695 -04:00 [Information] [] Executing endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' +2020-09-13 08:42:21.708 -04:00 [Debug] [] Registered model binder providers, in the following order: ["Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BinderTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ServicesModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.BodyModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.HeaderModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FloatingPointTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.EnumTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.SimpleTypeModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CancellationTokenModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ByteArrayModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormFileModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.FormCollectionModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.KeyValuePairModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.DictionaryModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ArrayModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.CollectionModelBinderProvider", "Microsoft.AspNetCore.Mvc.ModelBinding.Binders.ComplexTypeModelBinderProvider"] +2020-09-13 08:42:21.759 -04:00 [Information] [] Route matched with "{action = \"Index\", controller = \"Home\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.IActionResult Index()" on controller "TestApp.Controllers.HomeController" ("TestApp"). +2020-09-13 08:42:21.760 -04:00 [Debug] [] Execution plan of "authorization" filters (in the following order): ["None"] +2020-09-13 08:42:21.760 -04:00 [Debug] [] Execution plan of "resource" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"] +2020-09-13 08:42:21.760 -04:00 [Debug] [] Execution plan of "action" filters (in the following order): ["Microsoft.AspNetCore.Mvc.Filters.ControllerActionFilter (Order: -2147483648)", "Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)"] +2020-09-13 08:42:21.760 -04:00 [Debug] [] Execution plan of "exception" filters (in the following order): ["None"] +2020-09-13 08:42:21.760 -04:00 [Debug] [] Execution plan of "result" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"] +2020-09-13 08:42:21.762 -04:00 [Debug] [] Executing controller factory for controller "TestApp.Controllers.HomeController" ("TestApp") +2020-09-13 08:42:21.763 -04:00 [Debug] [] Executed controller factory for controller "TestApp.Controllers.HomeController" ("TestApp") +2020-09-13 08:42:21.769 -04:00 [Debug] [] Initializing Razor view compiler with compiled view: '"/Views/Home/Index.cshtml"'. +2020-09-13 08:42:21.769 -04:00 [Debug] [] Initializing Razor view compiler with compiled view: '"/Views/Home/Privacy.cshtml"'. +2020-09-13 08:42:21.769 -04:00 [Debug] [] Initializing Razor view compiler with compiled view: '"/Views/Shared/Error.cshtml"'. +2020-09-13 08:42:21.770 -04:00 [Debug] [] Initializing Razor view compiler with compiled view: '"/Views/Shared/_Layout.cshtml"'. +2020-09-13 08:42:21.770 -04:00 [Debug] [] Initializing Razor view compiler with compiled view: '"/Views/Shared/_ValidationScriptsPartial.cshtml"'. +2020-09-13 08:42:21.770 -04:00 [Debug] [] Initializing Razor view compiler with compiled view: '"/Views/_ViewImports.cshtml"'. +2020-09-13 08:42:21.770 -04:00 [Debug] [] Initializing Razor view compiler with compiled view: '"/Views/_ViewStart.cshtml"'. +2020-09-13 08:42:21.776 -04:00 [Debug] [] View lookup cache miss for view '"Index"' in controller '"Home"'. +2020-09-13 08:42:21.786 -04:00 [Information] [] Executing ViewResult, running view "Index". +2020-09-13 08:42:21.791 -04:00 [Debug] [] The view path '"/Views/Home/Index.cshtml"' was found in 11.8371ms. +2020-09-13 08:42:21.877 -04:00 [Debug] [] View lookup cache miss for view '"_Layout"' in controller '"Home"'. +2020-09-13 08:42:21.913 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:21.919 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "" and "" +2020-09-13 08:42:21.948 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/" +2020-09-13 08:42:21.951 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:21.951 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "" and "" +2020-09-13 08:42:21.951 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/" +2020-09-13 08:42:21.952 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:21.953 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "/Home/Privacy" and "" +2020-09-13 08:42:21.953 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/Home/Privacy" +2020-09-13 08:42:21.954 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:21.954 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "/Home/Privacy" and "" +2020-09-13 08:42:21.954 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/Home/Privacy" +2020-09-13 08:42:21.982 -04:00 [Information] [] Executed ViewResult - view "Index" executed in 207.9505ms. +2020-09-13 08:42:21.983 -04:00 [Information] [] Executed action "TestApp.Controllers.HomeController.Index (TestApp)" in 222.5443ms +2020-09-13 08:42:21.984 -04:00 [Information] [] Executed endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' +2020-09-13 08:42:21.989 -04:00 [Information] [] Request finished in 330.3257ms 200 text/html; charset=utf-8 +2020-09-13 08:42:22.041 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/lib/bootstrap/dist/css/bootstrap.min.css +2020-09-13 08:42:22.041 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/js/site.js?v=4q1jwFhaPaZgr8WAUSrux6hAuh0XDg9kPS3xIVq36I0 +2020-09-13 08:42:22.042 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/css/site.css +2020-09-13 08:42:22.050 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/lib/jquery/dist/jquery.min.js +2020-09-13 08:42:22.050 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/lib/bootstrap/dist/js/bootstrap.bundle.min.js +2020-09-13 08:42:22.070 -04:00 [Information] [] Sending file. Request path: '"/js/site.js"'. Physical path: '"D:\dev\Mine\JaCraig\Canister\TestApp\wwwroot\js\site.js"' +2020-09-13 08:42:22.070 -04:00 [Information] [] Request finished in 28.9096ms 200 application/javascript +2020-09-13 08:42:22.142 -04:00 [Information] [] Sending file. Request path: '"/css/site.css"'. Physical path: '"D:\dev\Mine\JaCraig\Canister\TestApp\wwwroot\css\site.css"' +2020-09-13 08:42:22.143 -04:00 [Information] [] Request finished in 100.755ms 200 text/css +2020-09-13 08:42:22.153 -04:00 [Information] [] Sending file. Request path: '"/lib/bootstrap/dist/js/bootstrap.bundle.min.js"'. Physical path: '"D:\dev\Mine\JaCraig\Canister\TestApp\wwwroot\lib\bootstrap\dist\js\bootstrap.bundle.min.js"' +2020-09-13 08:42:22.154 -04:00 [Information] [] Request finished in 103.5838ms 200 application/javascript +2020-09-13 08:42:22.154 -04:00 [Information] [] Sending file. Request path: '"/lib/bootstrap/dist/css/bootstrap.min.css"'. Physical path: '"D:\dev\Mine\JaCraig\Canister\TestApp\wwwroot\lib\bootstrap\dist\css\bootstrap.min.css"' +2020-09-13 08:42:22.154 -04:00 [Information] [] Request finished in 113.7378ms 200 text/css +2020-09-13 08:42:22.171 -04:00 [Information] [] Sending file. Request path: '"/lib/jquery/dist/jquery.min.js"'. Physical path: '"D:\dev\Mine\JaCraig\Canister\TestApp\wwwroot\lib\jquery\dist\jquery.min.js"' +2020-09-13 08:42:22.171 -04:00 [Information] [] Request finished in 120.6959ms 200 application/javascript +2020-09-13 08:42:22.364 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/favicon.ico +2020-09-13 08:42:22.393 -04:00 [Information] [] Sending file. Request path: '"/favicon.ico"'. Physical path: '"D:\dev\Mine\JaCraig\Canister\TestApp\wwwroot\favicon.ico"' +2020-09-13 08:42:22.393 -04:00 [Information] [] Request finished in 30.4978ms 200 image/x-icon +2020-09-13 08:42:25.958 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/ +2020-09-13 08:42:25.958 -04:00 [Debug] [] The request path "/" does not match a supported file type +2020-09-13 08:42:25.959 -04:00 [Debug] [] 1 candidate(s) found for the request path '"/"' +2020-09-13 08:42:25.960 -04:00 [Debug] [] Endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' with route pattern '"{controller=Home}/{action=Index}/{id?}"' is valid for the request path '"/"' +2020-09-13 08:42:25.960 -04:00 [Debug] [] Request matched endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' +2020-09-13 08:42:25.961 -04:00 [Information] [] Executing endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' +2020-09-13 08:42:25.962 -04:00 [Information] [] Route matched with "{action = \"Index\", controller = \"Home\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.IActionResult Index()" on controller "TestApp.Controllers.HomeController" ("TestApp"). +2020-09-13 08:42:25.962 -04:00 [Debug] [] Execution plan of "authorization" filters (in the following order): ["None"] +2020-09-13 08:42:25.962 -04:00 [Debug] [] Execution plan of "resource" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"] +2020-09-13 08:42:25.962 -04:00 [Debug] [] Execution plan of "action" filters (in the following order): ["Microsoft.AspNetCore.Mvc.Filters.ControllerActionFilter (Order: -2147483648)", "Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)"] +2020-09-13 08:42:25.962 -04:00 [Debug] [] Execution plan of "exception" filters (in the following order): ["None"] +2020-09-13 08:42:25.962 -04:00 [Debug] [] Execution plan of "result" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"] +2020-09-13 08:42:25.963 -04:00 [Debug] [] Executing controller factory for controller "TestApp.Controllers.HomeController" ("TestApp") +2020-09-13 08:42:25.963 -04:00 [Debug] [] Executed controller factory for controller "TestApp.Controllers.HomeController" ("TestApp") +2020-09-13 08:42:25.964 -04:00 [Debug] [] View lookup cache hit for view '"Index"' in controller '"Home"'. +2020-09-13 08:42:25.964 -04:00 [Information] [] Executing ViewResult, running view "Index". +2020-09-13 08:42:25.964 -04:00 [Debug] [] The view path '"/Views/Home/Index.cshtml"' was found in 0.3524ms. +2020-09-13 08:42:25.967 -04:00 [Debug] [] View lookup cache hit for view '"_Layout"' in controller '"Home"'. +2020-09-13 08:42:25.968 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:25.968 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "" and "" +2020-09-13 08:42:25.968 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/" +2020-09-13 08:42:25.968 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:25.969 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "" and "" +2020-09-13 08:42:25.969 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/" +2020-09-13 08:42:25.969 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:25.969 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "/Home/Privacy" and "" +2020-09-13 08:42:25.969 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/Home/Privacy" +2020-09-13 08:42:25.969 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:25.969 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "/Home/Privacy" and "" +2020-09-13 08:42:25.969 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/Home/Privacy" +2020-09-13 08:42:25.970 -04:00 [Information] [] Executed ViewResult - view "Index" executed in 6.3589ms. +2020-09-13 08:42:25.970 -04:00 [Information] [] Executed action "TestApp.Controllers.HomeController.Index (TestApp)" in 8.0324ms +2020-09-13 08:42:25.970 -04:00 [Information] [] Executed endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' +2020-09-13 08:42:25.970 -04:00 [Information] [] Request finished in 12.9893ms 200 text/html; charset=utf-8 +2020-09-13 08:42:26.613 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/Home/Privacy +2020-09-13 08:42:26.613 -04:00 [Debug] [] The request path "/Home/Privacy" does not match a supported file type +2020-09-13 08:42:26.615 -04:00 [Debug] [] 1 candidate(s) found for the request path '"/Home/Privacy"' +2020-09-13 08:42:26.615 -04:00 [Debug] [] Endpoint '"TestApp.Controllers.HomeController.Privacy (TestApp)"' with route pattern '"{controller=Home}/{action=Index}/{id?}"' is valid for the request path '"/Home/Privacy"' +2020-09-13 08:42:26.615 -04:00 [Debug] [] Request matched endpoint '"TestApp.Controllers.HomeController.Privacy (TestApp)"' +2020-09-13 08:42:26.615 -04:00 [Information] [] Executing endpoint '"TestApp.Controllers.HomeController.Privacy (TestApp)"' +2020-09-13 08:42:26.617 -04:00 [Information] [] Route matched with "{action = \"Privacy\", controller = \"Home\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.IActionResult Privacy()" on controller "TestApp.Controllers.HomeController" ("TestApp"). +2020-09-13 08:42:26.617 -04:00 [Debug] [] Execution plan of "authorization" filters (in the following order): ["None"] +2020-09-13 08:42:26.618 -04:00 [Debug] [] Execution plan of "resource" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"] +2020-09-13 08:42:26.618 -04:00 [Debug] [] Execution plan of "action" filters (in the following order): ["Microsoft.AspNetCore.Mvc.Filters.ControllerActionFilter (Order: -2147483648)", "Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)"] +2020-09-13 08:42:26.618 -04:00 [Debug] [] Execution plan of "exception" filters (in the following order): ["None"] +2020-09-13 08:42:26.618 -04:00 [Debug] [] Execution plan of "result" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"] +2020-09-13 08:42:26.618 -04:00 [Debug] [] Executing controller factory for controller "TestApp.Controllers.HomeController" ("TestApp") +2020-09-13 08:42:26.618 -04:00 [Debug] [] Executed controller factory for controller "TestApp.Controllers.HomeController" ("TestApp") +2020-09-13 08:42:26.619 -04:00 [Debug] [] View lookup cache miss for view '"Privacy"' in controller '"Home"'. +2020-09-13 08:42:26.619 -04:00 [Information] [] Executing ViewResult, running view "Privacy". +2020-09-13 08:42:26.619 -04:00 [Debug] [] The view path '"/Views/Home/Privacy.cshtml"' was found in 0.8335ms. +2020-09-13 08:42:26.622 -04:00 [Debug] [] View lookup cache hit for view '"_Layout"' in controller '"Home"'. +2020-09-13 08:42:26.622 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "" and "" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "" and "" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "/Home/Privacy" and "" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/Home/Privacy" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:26.622 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "/Home/Privacy" and "" +2020-09-13 08:42:26.623 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/Home/Privacy" +2020-09-13 08:42:26.623 -04:00 [Information] [] Executed ViewResult - view "Privacy" executed in 4.8199ms. +2020-09-13 08:42:26.623 -04:00 [Information] [] Executed action "TestApp.Controllers.HomeController.Privacy (TestApp)" in 5.6583ms +2020-09-13 08:42:26.624 -04:00 [Information] [] Executed endpoint '"TestApp.Controllers.HomeController.Privacy (TestApp)"' +2020-09-13 08:42:26.624 -04:00 [Information] [] Request finished in 11.2297ms 200 text/html; charset=utf-8 +2020-09-13 08:42:27.851 -04:00 [Information] [] Request starting HTTP/2.0 GET https://localhost:44354/ +2020-09-13 08:42:27.851 -04:00 [Debug] [] The request path "/" does not match a supported file type +2020-09-13 08:42:27.851 -04:00 [Debug] [] 1 candidate(s) found for the request path '"/"' +2020-09-13 08:42:27.852 -04:00 [Debug] [] Endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' with route pattern '"{controller=Home}/{action=Index}/{id?}"' is valid for the request path '"/"' +2020-09-13 08:42:27.852 -04:00 [Debug] [] Request matched endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' +2020-09-13 08:42:27.852 -04:00 [Information] [] Executing endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' +2020-09-13 08:42:27.853 -04:00 [Information] [] Route matched with "{action = \"Index\", controller = \"Home\"}". Executing controller action with signature "Microsoft.AspNetCore.Mvc.IActionResult Index()" on controller "TestApp.Controllers.HomeController" ("TestApp"). +2020-09-13 08:42:27.853 -04:00 [Debug] [] Execution plan of "authorization" filters (in the following order): ["None"] +2020-09-13 08:42:27.853 -04:00 [Debug] [] Execution plan of "resource" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"] +2020-09-13 08:42:27.853 -04:00 [Debug] [] Execution plan of "action" filters (in the following order): ["Microsoft.AspNetCore.Mvc.Filters.ControllerActionFilter (Order: -2147483648)", "Microsoft.AspNetCore.Mvc.ModelBinding.UnsupportedContentTypeFilter (Order: -3000)"] +2020-09-13 08:42:27.853 -04:00 [Debug] [] Execution plan of "exception" filters (in the following order): ["None"] +2020-09-13 08:42:27.853 -04:00 [Debug] [] Execution plan of "result" filters (in the following order): ["Microsoft.AspNetCore.Mvc.ViewFeatures.Filters.SaveTempDataFilter"] +2020-09-13 08:42:27.853 -04:00 [Debug] [] Executing controller factory for controller "TestApp.Controllers.HomeController" ("TestApp") +2020-09-13 08:42:27.854 -04:00 [Debug] [] Executed controller factory for controller "TestApp.Controllers.HomeController" ("TestApp") +2020-09-13 08:42:27.854 -04:00 [Debug] [] View lookup cache hit for view '"Index"' in controller '"Home"'. +2020-09-13 08:42:27.854 -04:00 [Information] [] Executing ViewResult, running view "Index". +2020-09-13 08:42:27.854 -04:00 [Debug] [] The view path '"/Views/Home/Index.cshtml"' was found in 0.2856ms. +2020-09-13 08:42:27.855 -04:00 [Debug] [] View lookup cache hit for view '"_Layout"' in controller '"Home"'. +2020-09-13 08:42:27.857 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:27.857 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "" and "" +2020-09-13 08:42:27.857 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/" +2020-09-13 08:42:27.858 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:27.858 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "" and "" +2020-09-13 08:42:27.858 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/" +2020-09-13 08:42:27.858 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:27.858 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "/Home/Privacy" and "" +2020-09-13 08:42:27.859 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/Home/Privacy" +2020-09-13 08:42:27.859 -04:00 [Debug] [] Found the endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] for address "Microsoft.AspNetCore.Routing.RouteValuesAddress" +2020-09-13 08:42:27.859 -04:00 [Debug] [] Successfully processed template "{controller=Home}/{action=Index}/{id?}" for "Route: {controller=Home}/{action=Index}/{id?}" resulting in "/Home/Privacy" and "" +2020-09-13 08:42:27.859 -04:00 [Debug] [] Link generation succeeded for endpoints ["Route: {controller=Home}/{action=Index}/{id?}"] with result "/Home/Privacy" +2020-09-13 08:42:27.861 -04:00 [Information] [] Executed ViewResult - view "Index" executed in 6.5661ms. +2020-09-13 08:42:27.861 -04:00 [Information] [] Executed action "TestApp.Controllers.HomeController.Index (TestApp)" in 7.4276ms +2020-09-13 08:42:27.861 -04:00 [Information] [] Executed endpoint '"TestApp.Controllers.HomeController.Index (TestApp)"' +2020-09-13 08:42:27.861 -04:00 [Information] [] Request finished in 10.6489ms 200 text/html; charset=utf-8 diff --git a/TestApp/TestApp.csproj b/TestApp/TestApp.csproj index 74d8539..0912ade 100644 --- a/TestApp/TestApp.csproj +++ b/TestApp/TestApp.csproj @@ -9,7 +9,7 @@ - + diff --git a/src/Canister.IoC/Canister.IoC.csproj b/src/Canister.IoC/Canister.IoC.csproj index c129632..ba8f242 100644 --- a/src/Canister.IoC/Canister.IoC.csproj +++ b/src/Canister.IoC/Canister.IoC.csproj @@ -29,7 +29,7 @@ - + diff --git a/src/Canister.IoC/Default/DefaultBootstrapper.cs b/src/Canister.IoC/Default/DefaultBootstrapper.cs index 1df7cc4..dfaffd3 100644 --- a/src/Canister.IoC/Default/DefaultBootstrapper.cs +++ b/src/Canister.IoC/Default/DefaultBootstrapper.cs @@ -290,8 +290,9 @@ private Type[] GetAvailableTypes() /// private void UpdateServiceProvider() { - if (!(ServiceProvider is null)) - ServiceProvider = ServiceProviderFactory.CreateServiceProvider(AppContainer); + if (ServiceProvider is null) + return; + ServiceProvider = ServiceProviderFactory.CreateServiceProvider(AppContainer); } } } \ No newline at end of file diff --git a/test/Canister.Tests/Canister.Tests.csproj b/test/Canister.Tests/Canister.Tests.csproj index 2648563..1d33a03 100644 --- a/test/Canister.Tests/Canister.Tests.csproj +++ b/test/Canister.Tests/Canister.Tests.csproj @@ -23,8 +23,8 @@ - - + + all runtime; build; native; contentfiles; analyzers