├── Chapter 6 - Parameter Binding.csproj ├── Chapter 6 - Parameter Binding.csproj.user ├── Chapter01 - Getting up and Running with Minimal API Development └── Chapter1 - Getting up and Running with Minimal API Development.cs ├── Chapter02 - Creating your first Minimal API ├── Chapter 2 - Creating your first Minimal API.sln └── Chapter 2 - Creating your first Minimal API │ ├── Chapter 2 - Creating your first Minimal API.csproj │ ├── Chapter 2 - Creating your first Minimal API.csproj.user │ ├── Employee.cs │ ├── EmployeeManager.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── bin │ └── Debug │ │ └── net8.0 │ │ ├── Chapter 2 - Creating your first Minimal API.deps.json │ │ ├── Chapter 2 - Creating your first Minimal API.dll │ │ ├── Chapter 2 - Creating your first Minimal API.exe │ │ ├── Chapter 2 - Creating your first Minimal API.pdb │ │ ├── Chapter 2 - Creating your first Minimal API.runtimeconfig.json │ │ ├── appsettings.Development.json │ │ └── appsettings.json │ └── obj │ ├── Chapter 2 - Creating your first Minimal API.csproj.nuget.dgspec.json │ ├── Chapter 2 - Creating your first Minimal API.csproj.nuget.g.props │ ├── Chapter 2 - Creating your first Minimal API.csproj.nuget.g.targets │ ├── Debug │ └── net8.0 │ │ ├── Chapter 2 - Creating your first Minimal API.AssemblyInfo.cs │ │ ├── Chapter 2 - Creating your first Minimal API.GlobalUsings.g.cs │ │ ├── Chapter 2 - Creating your first Minimal API.assets.cache │ │ ├── Chapter 2 - Creating your first Minimal API.dll │ │ ├── Chapter 2 - Creating your first Minimal API.pdb │ │ ├── apphost.exe │ │ ├── ref │ │ └── Chapter 2 - Creating your first Minimal API.dll │ │ ├── refint │ │ └── Chapter 2 - Creating your first Minimal API.dll │ │ └── staticwebassets.build.json │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter04 - Handling HTTP Methods and Routing ├── Chapter 4 - Handling HTTP Methods and Routing.sln └── Chapter 4 - Handling HTTP Methods and Routing │ ├── Chapter 4 - Handling HTTP Methods and Routing.csproj │ ├── Chapter 4 - Handling HTTP Methods and Routing.csproj.user │ ├── CreateTodoFilter.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── TodoItem.cs │ ├── appsettings.Development.json │ ├── appsettings.json │ └── obj │ ├── Chapter 4 - Handling HTTP Methods and Routing.csproj.nuget.dgspec.json │ ├── Chapter 4 - Handling HTTP Methods and Routing.csproj.nuget.g.props │ ├── Chapter 4 - Handling HTTP Methods and Routing.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── ApiEndpoints.json │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.AssemblyInfo.cs │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.AssemblyInfoInputs.cache │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.GlobalUsings.g.cs │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.MvcApplicationPartsAssemblyInfo.cache │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.assets.cache │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.csproj.BuildWithSkipAnalyzers │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.csproj.CoreCompileInputs.cache │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.csproj.FileListAbsolute.txt │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.dll │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.genruntimeconfig.cache │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.pdb │ │ ├── Chapter 4 - Handling HTTP Methods and Routing.sourcelink.json │ │ ├── apphost.exe │ │ ├── ref │ │ └── Chapter 4 - Handling HTTP Methods and Routing.dll │ │ ├── refint │ │ └── Chapter 4 - Handling HTTP Methods and Routing.dll │ │ ├── staticwebassets.build.endpoints.json │ │ ├── staticwebassets.build.json │ │ └── staticwebassets │ │ ├── msbuild.build.Chapter 4 - Handling HTTP Methods and Routing.props │ │ ├── msbuild.buildMultiTargeting.Chapter 4 - Handling HTTP Methods and Routing.props │ │ └── msbuild.buildTransitive.Chapter 4 - Handling HTTP Methods and Routing.props │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter05 - The Middleware Pipeline ├── Chapter 5 - The Middleware Pipeline.sln └── Chapter 5 - The Middleware Pipeline │ ├── Chapter 5 - The Middleware Pipeline.csproj │ ├── Chapter 5 - The Middleware Pipeline.csproj.user │ ├── ExceptionHandlingMiddleware.cs │ ├── IPBlockingMiddleware.cs │ ├── LoggingMiddleware.cs │ ├── MySuperSimpleMiddlewareClass.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── appsettings.Development.json │ ├── appsettings.json │ └── obj │ ├── Chapter 5 - The Middleware Pipeline.csproj.nuget.dgspec.json │ ├── Chapter 5 - The Middleware Pipeline.csproj.nuget.g.props │ ├── Chapter 5 - The Middleware Pipeline.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── Chapter 5 - The Middleware Pipeline.AssemblyInfo.cs │ │ ├── Chapter 5 - The Middleware Pipeline.AssemblyInfoInputs.cache │ │ ├── Chapter 5 - The Middleware Pipeline.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter 5 - The Middleware Pipeline.GlobalUsings.g.cs │ │ └── Chapter 5 - The Middleware Pipeline.assets.cache │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter07 - Dependency Injection In Minimal APIs ├── Chapter 7 - Dependency Injection In Minimal APIs.sln └── Chapter 7 - Dependency Injection In Minimal APIs │ ├── Chapter 7 - Dependency Injection In Minimal APIs.csproj │ ├── Chapter 7 - Dependency Injection In Minimal APIs.csproj.user │ ├── DeliveryDateBookingService.cs │ ├── Order.cs │ ├── Product.cs │ ├── ProductRepository.cs │ ├── ProductRetrievalService.cs │ ├── Products.json │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── ServiceCollectionExtensions.cs │ ├── appsettings.Development.json │ ├── appsettings.json │ └── obj │ ├── Chapter 7 - Dependency Injection In Minimal APIs.csproj.nuget.dgspec.json │ ├── Chapter 7 - Dependency Injection In Minimal APIs.csproj.nuget.g.props │ ├── Chapter 7 - Dependency Injection In Minimal APIs.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── Chapter 7 - Dependency Injection In Minimal APIs.AssemblyInfo.cs │ │ ├── Chapter 7 - Dependency Injection In Minimal APIs.AssemblyInfoInputs.cache │ │ ├── Chapter 7 - Dependency Injection In Minimal APIs.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter 7 - Dependency Injection In Minimal APIs.GlobalUsings.g.cs │ │ └── Chapter 7 - Dependency Injection In Minimal APIs.assets.cache │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter08 - Integrating Minimal APIs with Data Sources ├── Chapter 8 - Integrating Minimal APIs with Data Sources.sln └── Chapter 8 - Integrating Minimal APIs with Data Sources │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.csproj │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.user │ ├── Employee.cs │ ├── EmployeeMongoDb.cs │ ├── Employees.json │ ├── Employees.sql │ ├── IDatabaseService.cs │ ├── IEmployee.cs │ ├── MongoDbService.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── SqlService.cs │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── bin │ └── Debug │ │ └── net9.0 │ │ ├── AWSSDK.Core.dll │ │ ├── AWSSDK.SecurityToken.dll │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.deps.json │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.dll │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.exe │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.pdb │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.runtimeconfig.json │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.staticwebassets.endpoints.json │ │ ├── DnsClient.dll │ │ ├── Employees.json │ │ ├── MongoDB.Bson.dll │ │ ├── MongoDB.Driver.Core.dll │ │ ├── MongoDB.Driver.dll │ │ ├── MongoDB.Libmongocrypt.dll │ │ ├── SharpCompress.dll │ │ ├── Snappier.dll │ │ ├── System.Data.SqlClient.dll │ │ ├── ZstdSharp.dll │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ └── runtimes │ │ ├── linux │ │ └── native │ │ │ └── libmongocrypt.so │ │ ├── osx │ │ └── native │ │ │ └── libmongocrypt.dylib │ │ ├── unix │ │ └── lib │ │ │ └── netcoreapp2.1 │ │ │ └── System.Data.SqlClient.dll │ │ ├── win-arm64 │ │ └── native │ │ │ └── sni.dll │ │ ├── win-x64 │ │ └── native │ │ │ └── sni.dll │ │ ├── win-x86 │ │ └── native │ │ │ └── sni.dll │ │ └── win │ │ ├── lib │ │ └── netcoreapp2.1 │ │ │ └── System.Data.SqlClient.dll │ │ └── native │ │ └── mongocrypt.dll │ └── obj │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.nuget.dgspec.json │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.nuget.g.props │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── Chapter .6FD4A3ED.Up2Date │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.AssemblyInfo.cs │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.AssemblyInfoInputs.cache │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.GlobalUsings.g.cs │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.assets.cache │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.AssemblyReference.cache │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.CoreCompileInputs.cache │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.FileListAbsolute.txt │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.dll │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.genruntimeconfig.cache │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.pdb │ │ ├── Chapter 8 - Integrating Minimal APIs with Data Sources.sourcelink.json │ │ ├── apphost.exe │ │ ├── ref │ │ └── Chapter 8 - Integrating Minimal APIs with Data Sources.dll │ │ ├── refint │ │ └── Chapter 8 - Integrating Minimal APIs with Data Sources.dll │ │ ├── staticwebassets.build.endpoints.json │ │ ├── staticwebassets.build.json │ │ └── staticwebassets │ │ └── msbuild.build.Chapter 8 - Integrating Minimal APIs with Data Sources.props │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper ├── Chapter 9 - Entity Framework Core and Dapper.sln └── Chapter 9 - Entity Framework Core and Dapper │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.user │ ├── DapperService.cs │ ├── Employee.cs │ ├── EmployeeService.cs │ ├── Employees.Sql │ ├── IEmployee.cs │ ├── Models │ ├── Employee.cs │ └── MyCompanyContext.cs │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── appsettings.Development.json │ ├── appsettings.json │ └── obj │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.dgspec.json │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.g.props │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── Chapter 9 - Entity Framework Core and Dapper.AssemblyInfo.cs │ │ ├── Chapter 9 - Entity Framework Core and Dapper.AssemblyInfoInputs.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter 9 - Entity Framework Core and Dapper.GlobalUsings.g.cs │ │ ├── Chapter 9 - Entity Framework Core and Dapper.MvcApplicationPartsAssemblyInfo.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.assets.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.AssemblyReference.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.CoreCompileInputs.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.FileListAbsolute.txt │ │ └── Chapter 9 - Entity Framework Core and Dapper.sourcelink.json │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter11 - Utilising Asynchronous Programming for Scalability └── Chapter 11 - Asynchronous Programming │ ├── Chapter 11 - Asynchronous Programming.sln │ └── Chapter 11 - Asynchronous Programming │ ├── Chapter 11 - Asynchronous Programming.csproj │ ├── Chapter 11 - Asynchronous Programming.csproj.user │ ├── Program.cs │ ├── Properties │ └── launchSettings.json │ ├── appsettings.Development.json │ ├── appsettings.json │ ├── bin │ └── Debug │ │ └── net9.0 │ │ ├── Chapter 11 - Asynchronous Programming.deps.json │ │ ├── Chapter 11 - Asynchronous Programming.dll │ │ ├── Chapter 11 - Asynchronous Programming.exe │ │ ├── Chapter 11 - Asynchronous Programming.pdb │ │ ├── Chapter 11 - Asynchronous Programming.runtimeconfig.json │ │ ├── appsettings.Development.json │ │ └── appsettings.json │ └── obj │ ├── Chapter 11 - Asynchronous Programming.csproj.nuget.dgspec.json │ ├── Chapter 11 - Asynchronous Programming.csproj.nuget.g.props │ ├── Chapter 11 - Asynchronous Programming.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── ApiEndpoints.json │ │ ├── Chapter 11 - Asynchronous Programming.AssemblyInfo.cs │ │ ├── Chapter 11 - Asynchronous Programming.GlobalUsings.g.cs │ │ ├── Chapter 11 - Asynchronous Programming.assets.cache │ │ ├── Chapter 11 - Asynchronous Programming.dll │ │ ├── Chapter 11 - Asynchronous Programming.genruntimeconfig.cache │ │ ├── Chapter 11 - Asynchronous Programming.pdb │ │ ├── Chapter 11 - Asynchronous Programming.sourcelink.json │ │ ├── apphost.exe │ │ ├── ref │ │ └── Chapter 11 - Asynchronous Programming.dll │ │ ├── refint │ │ └── Chapter 11 - Asynchronous Programming.dll │ │ ├── staticwebassets.build.endpoints.json │ │ └── staticwebassets.build.json │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter12 - Caching Strategies for Enhanced Performance ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.user ├── Chapter 12 - Caching Strategies for Enhanced Performance.sln ├── Chapter 9 - Entity Framework Core and Dapper.csproj.user ├── DapperService.cs ├── Employee.cs ├── EmployeeService.cs ├── Employees.Sql ├── IEmployee.cs ├── Models │ ├── Employee.cs │ └── MyCompanyContext.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── appsettings.Development.json ├── appsettings.json └── obj │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.nuget.dgspec.json │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.nuget.g.props │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.nuget.g.targets │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.dgspec.json │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.g.props │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── ApiEndpoints.json │ │ ├── Chapter .4293E544.Up2Date │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.AssemblyInfo.cs │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.AssemblyInfoInputs.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.GlobalUsings.g.cs │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.assets.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.AssemblyReference.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.BuildWithSkipAnalyzers │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.CoreCompileInputs.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.FileListAbsolute.txt │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.dll │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.genruntimeconfig.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.pdb │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.sourcelink.json │ │ ├── Chapter 9 - Entity Framework Core and Dapper.AssemblyInfo.cs │ │ ├── Chapter 9 - Entity Framework Core and Dapper.AssemblyInfoInputs.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter 9 - Entity Framework Core and Dapper.GlobalUsings.g.cs │ │ ├── Chapter 9 - Entity Framework Core and Dapper.MvcApplicationPartsAssemblyInfo.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.assets.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.AssemblyReference.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.CoreCompileInputs.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.FileListAbsolute.txt │ │ ├── Chapter 9 - Entity Framework Core and Dapper.sourcelink.json │ │ ├── apphost.exe │ │ ├── ref │ │ └── Chapter 12 - Caching Strategies for Enhanced Performance.dll │ │ ├── refint │ │ └── Chapter 12 - Caching Strategies for Enhanced Performance.dll │ │ ├── staticwebassets.build.endpoints.json │ │ └── staticwebassets.build.json │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter13 - Best Practices for Minimal API Resiliency ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.user ├── Chapter 13 - Best Practices for Minimal API Development.csproj ├── Chapter 13 - Best Practices for Minimal API Development.csproj.user ├── Chapter 13 - Best Practices for Minimal API Development.sln ├── Chapter 9 - Entity Framework Core and Dapper.csproj.user ├── DapperService.cs ├── Employee.cs ├── EmployeeService.cs ├── Employees.Sql ├── IAnnualLeaveStrategy.cs ├── IEmployee.cs ├── Models │ ├── Employee.cs │ └── MyCompanyContext.cs ├── PostProbationaryAnnualLeaveStrategy.cs ├── ProbationaryAnnualLeaveStrategy.cs ├── Program.cs ├── Properties │ └── launchSettings.json ├── appsettings.Development.json ├── appsettings.json └── obj │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.nuget.dgspec.json │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.nuget.g.props │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.nuget.g.targets │ ├── Chapter 13 - Best Practices for Minimal API Development.csproj.nuget.dgspec.json │ ├── Chapter 13 - Best Practices for Minimal API Development.csproj.nuget.g.props │ ├── Chapter 13 - Best Practices for Minimal API Development.csproj.nuget.g.targets │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.dgspec.json │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.g.props │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── ApiEndpoints.json │ │ ├── Chapter .4293E544.Up2Date │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.AssemblyInfo.cs │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.AssemblyInfoInputs.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.GlobalUsings.g.cs │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.assets.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.AssemblyReference.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.BuildWithSkipAnalyzers │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.CoreCompileInputs.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.csproj.FileListAbsolute.txt │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.dll │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.genruntimeconfig.cache │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.pdb │ │ ├── Chapter 12 - Caching Strategies for Enhanced Performance.sourcelink.json │ │ ├── Chapter 13 - Best Practices for Minimal API Development.AssemblyInfo.cs │ │ ├── Chapter 13 - Best Practices for Minimal API Development.AssemblyInfoInputs.cache │ │ ├── Chapter 13 - Best Practices for Minimal API Development.GlobalUsings.g.cs │ │ ├── Chapter 13 - Best Practices for Minimal API Development.assets.cache │ │ ├── Chapter 13 - Best Practices for Minimal API Development.csproj.AssemblyReference.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.AssemblyInfo.cs │ │ ├── Chapter 9 - Entity Framework Core and Dapper.AssemblyInfoInputs.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter 9 - Entity Framework Core and Dapper.GlobalUsings.g.cs │ │ ├── Chapter 9 - Entity Framework Core and Dapper.MvcApplicationPartsAssemblyInfo.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.assets.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.AssemblyReference.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.CoreCompileInputs.cache │ │ ├── Chapter 9 - Entity Framework Core and Dapper.csproj.FileListAbsolute.txt │ │ ├── Chapter 9 - Entity Framework Core and Dapper.sourcelink.json │ │ ├── apphost.exe │ │ ├── ref │ │ └── Chapter 12 - Caching Strategies for Enhanced Performance.dll │ │ ├── refint │ │ └── Chapter 12 - Caching Strategies for Enhanced Performance.dll │ │ ├── staticwebassets.build.endpoints.json │ │ └── staticwebassets.build.json │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter14 - Tests ├── CalculatorTests.cs ├── Chapter14Tests.csproj └── obj │ ├── Chapter14Tests.csproj.nuget.dgspec.json │ ├── Chapter14Tests.csproj.nuget.g.props │ ├── Chapter14Tests.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── Chapter1.F2D293FB.Up2Date │ │ ├── Chapter14Tests.AssemblyInfo.cs │ │ ├── Chapter14Tests.AssemblyInfoInputs.cache │ │ ├── Chapter14Tests.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter14Tests.GlobalUsings.g.cs │ │ ├── Chapter14Tests.assets.cache │ │ ├── Chapter14Tests.csproj.AssemblyReference.cache │ │ ├── Chapter14Tests.csproj.BuildWithSkipAnalyzers │ │ ├── Chapter14Tests.csproj.CoreCompileInputs.cache │ │ ├── Chapter14Tests.csproj.FileListAbsolute.txt │ │ ├── Chapter14Tests.dll │ │ ├── Chapter14Tests.genruntimeconfig.cache │ │ ├── Chapter14Tests.pdb │ │ ├── Chapter14Tests.sourcelink.json │ │ ├── MvcTestingAppManifest.json │ │ ├── ref │ │ └── Chapter14Tests.dll │ │ └── refint │ │ └── Chapter14Tests.dll │ ├── Release │ └── net9.0 │ │ ├── Chapter14Tests.AssemblyInfo.cs │ │ ├── Chapter14Tests.AssemblyInfoInputs.cache │ │ ├── Chapter14Tests.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter14Tests.GlobalUsings.g.cs │ │ ├── Chapter14Tests.assets.cache │ │ └── Chapter14Tests.csproj.AssemblyReference.cache │ ├── project.assets.json │ └── project.nuget.cache ├── Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs ├── CalculatorService.cs ├── Chapter 14.csproj ├── Chapter 14.csproj.user ├── Program.cs ├── Properties │ ├── PublishProfiles │ │ ├── FolderProfile.pubxml │ │ ├── FolderProfile.pubxml.user │ │ ├── NexBotixInternalAPI - Zip Deploy.pubxml │ │ └── NexBotixInternalAPI - Zip Deploy.pubxml.user │ └── launchSettings.json ├── appsettings.Development.json ├── appsettings.json ├── bin │ ├── Debug │ │ └── net9.0 │ │ │ ├── Chapter 14.deps.json │ │ │ ├── Chapter 14.dll │ │ │ ├── Chapter 14.exe │ │ │ ├── Chapter 14.pdb │ │ │ ├── Chapter 14.runtimeconfig.json │ │ │ ├── Chapter 14.staticwebassets.endpoints.json │ │ │ ├── appsettings.Development.json │ │ │ └── appsettings.json │ └── Release │ │ └── net9.0 │ │ ├── Chapter 14.deps.json │ │ ├── Chapter 14.dll │ │ ├── Chapter 14.exe │ │ ├── Chapter 14.pdb │ │ ├── Chapter 14.runtimeconfig.json │ │ ├── Chapter 14.staticwebassets.endpoints.json │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ └── publish │ │ ├── Chapter 14.deps.json │ │ ├── Chapter 14.dll │ │ ├── Chapter 14.exe │ │ ├── Chapter 14.pdb │ │ ├── Chapter 14.runtimeconfig.json │ │ ├── Chapter 14.staticwebassets.endpoints.json │ │ ├── appsettings.Development.json │ │ ├── appsettings.json │ │ └── web.config └── obj │ ├── Chapter 14.csproj.EntityFrameworkCore.targets │ ├── Chapter 14.csproj.nuget.dgspec.json │ ├── Chapter 14.csproj.nuget.g.props │ ├── Chapter 14.csproj.nuget.g.targets │ ├── Debug │ └── net9.0 │ │ ├── ApiEndpoints.json │ │ ├── Chapter 14.AssemblyInfo.cs │ │ ├── Chapter 14.AssemblyInfoInputs.cache │ │ ├── Chapter 14.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter 14.GlobalUsings.g.cs │ │ ├── Chapter 14.MvcApplicationPartsAssemblyInfo.cache │ │ ├── Chapter 14.assets.cache │ │ ├── Chapter 14.csproj.CoreCompileInputs.cache │ │ ├── Chapter 14.csproj.FileListAbsolute.txt │ │ ├── Chapter 14.dll │ │ ├── Chapter 14.genruntimeconfig.cache │ │ ├── Chapter 14.pdb │ │ ├── Chapter 14.sourcelink.json │ │ ├── apphost.exe │ │ ├── ref │ │ └── Chapter 14.dll │ │ ├── refint │ │ └── Chapter 14.dll │ │ ├── staticwebassets.build.endpoints.json │ │ ├── staticwebassets.build.json │ │ └── staticwebassets │ │ ├── msbuild.build.Chapter 14.props │ │ └── msbuild.buildTransitive.Chapter 14.props │ ├── Release │ └── net9.0 │ │ ├── Chapter 14.AssemblyInfo.cs │ │ ├── Chapter 14.AssemblyInfoInputs.cache │ │ ├── Chapter 14.GeneratedMSBuildEditorConfig.editorconfig │ │ ├── Chapter 14.GlobalUsings.g.cs │ │ ├── Chapter 14.MvcApplicationPartsAssemblyInfo.cache │ │ ├── Chapter 14.assets.cache │ │ ├── Chapter 14.csproj.CoreCompileInputs.cache │ │ ├── Chapter 14.csproj.FileListAbsolute.txt │ │ ├── Chapter 14.dll │ │ ├── Chapter 14.genruntimeconfig.cache │ │ ├── Chapter 14.pdb │ │ ├── Chapter 14.sourcelink.json │ │ ├── PubTmp │ │ └── Out │ │ │ ├── Chapter 14.deps.json │ │ │ ├── Chapter 14.dll │ │ │ ├── Chapter 14.exe │ │ │ ├── Chapter 14.pdb │ │ │ ├── Chapter 14.runtimeconfig.json │ │ │ ├── Chapter 14.staticwebassets.endpoints.json │ │ │ ├── appsettings.Development.json │ │ │ ├── appsettings.json │ │ │ └── web.config │ │ ├── PublishOutputs.ac5c555206.txt │ │ ├── apphost.exe │ │ ├── ref │ │ └── Chapter 14.dll │ │ ├── refint │ │ └── Chapter 14.dll │ │ ├── staticwebassets.build.endpoints.json │ │ ├── staticwebassets.build.json │ │ ├── staticwebassets.publish.endpoints.json │ │ ├── staticwebassets.publish.json │ │ └── staticwebassets │ │ ├── msbuild.build.Chapter 14.props │ │ └── msbuild.buildTransitive.Chapter 14.props │ ├── project.assets.json │ └── project.nuget.cache ├── LICENSE ├── Program.cs ├── README.md ├── TodoItem.cs ├── TodoItemService.cs ├── appsettings.Development.json └── appsettings.json /Chapter 6 - Parameter Binding.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_6___Parameter_Binding 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter 6 - Parameter Binding.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net8.0 5 | enable 6 | enable 7 | Chapter_2___Creating_your_first_Minimal_API 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/Employee.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_2___Creating_your_first_Minimal_API 2 | { 3 | public class Employee 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | public float Salary { get; set; } 8 | public string Address { get; set; } 9 | public string City { get; set; } 10 | public string Region { get; set; } 11 | public string PostalCode { get; set; } 12 | public string Country { get; set; } 13 | public string Phone { get; set; } 14 | 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "http://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:64602", 8 | "sslPort": 44353 9 | } 10 | }, 11 | "profiles": { 12 | "http": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": true, 16 | "applicationUrl": "http://localhost:5057", 17 | "environmentVariables": { 18 | "ASPNETCORE_ENVIRONMENT": "Development" 19 | } 20 | }, 21 | "https": { 22 | "commandName": "Project", 23 | "dotnetRunMessages": true, 24 | "launchBrowser": true, 25 | "applicationUrl": "https://localhost:7267;http://localhost:5057", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | }, 30 | "IIS Express": { 31 | "commandName": "IISExpress", 32 | "launchBrowser": true, 33 | "environmentVariables": { 34 | "ASPNETCORE_ENVIRONMENT": "Development" 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/Chapter 2 - Creating your first Minimal API.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v8.0", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v8.0": { 9 | "Chapter 2 - Creating your first Minimal API/1.0.0": { 10 | "runtime": { 11 | "Chapter 2 - Creating your first Minimal API.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "Chapter 2 - Creating your first Minimal API/1.0.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/Chapter 2 - Creating your first Minimal API.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/Chapter 2 - Creating your first Minimal API.dll -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/Chapter 2 - Creating your first Minimal API.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/Chapter 2 - Creating your first Minimal API.exe -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/Chapter 2 - Creating your first Minimal API.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/Chapter 2 - Creating your first Minimal API.pdb -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/Chapter 2 - Creating your first Minimal API.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net8.0", 4 | "frameworks": [ 5 | { 6 | "name": "Microsoft.NETCore.App", 7 | "version": "8.0.0" 8 | }, 9 | { 10 | "name": "Microsoft.AspNetCore.App", 11 | "version": "8.0.0" 12 | } 13 | ], 14 | "configProperties": { 15 | "System.GC.Server": true, 16 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/bin/Debug/net8.0/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Chapter 2 - Creating your first Minimal API.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/Chapter 2 - Creating your first Minimal API.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/Chapter 2 - Creating your first Minimal API.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/Chapter 2 - Creating your first Minimal API.assets.cache -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/Chapter 2 - Creating your first Minimal API.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/Chapter 2 - Creating your first Minimal API.dll -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/Chapter 2 - Creating your first Minimal API.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/Chapter 2 - Creating your first Minimal API.pdb -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/apphost.exe -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/ref/Chapter 2 - Creating your first Minimal API.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/ref/Chapter 2 - Creating your first Minimal API.dll -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/refint/Chapter 2 - Creating your first Minimal API.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/refint/Chapter 2 - Creating your first Minimal API.dll -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/Debug/net8.0/staticwebassets.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "MZKsnUwzwUhMOrGpNOeme9j8d4kB9mbu8Ds+SzyaqBw=", 4 | "Source": "Chapter 2 - Creating your first Minimal API", 5 | "BasePath": "_content/Chapter 2 - Creating your first Minimal API", 6 | "Mode": "Default", 7 | "ManifestType": "Build", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [] 11 | } -------------------------------------------------------------------------------- /Chapter02 - Creating your first Minimal API/Chapter 2 - Creating your first Minimal API/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "uuu7D/l8HHzBuy2Z3lOpXZA5Z2nBlLO8JZI9uDYNop1aSJTBckIdjhORkhk0Tjmokor6mI3N3zhp91FjhEFqAg==", 4 | "success": true, 5 | "projectFilePath": "N:\\Book Projects\\Minimal APIs .NET 8\\Chapters\\Chapter 2 - Creating your first Minimal API\\Chapter 2 - Creating your first Minimal API\\Chapter 2 - Creating your first Minimal API\\Chapter 2 - Creating your first Minimal API.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_4___Handling_HTTP_Methods_and_Routing 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/CreateTodoFilter.cs: -------------------------------------------------------------------------------- 1 |  2 | namespace Chapter_4___Handling_HTTP_Methods_and_Routing 3 | { 4 | public class CreateTodoFilter : IEndpointFilter 5 | { 6 | public async ValueTask InvokeAsync(EndpointFilterInvocationContext context, EndpointFilterDelegate next) 7 | { 8 | var todoItem = context.GetArgument(0); 9 | if(todoItem.Assignee == "Joe Bloggs") 10 | { 11 | return Results.Problem("Joe Bloggs cannot be assigned a todoitem"); 12 | } 13 | return await next(context); 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:20981", 8 | "sslPort": 44389 9 | } 10 | }, 11 | "profiles": { 12 | "http": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": true, 16 | "applicationUrl": "http://localhost:5115", 17 | "environmentVariables": { 18 | "ASPNETCORE_ENVIRONMENT": "Development" 19 | } 20 | }, 21 | "https": { 22 | "commandName": "Project", 23 | "dotnetRunMessages": true, 24 | "launchBrowser": true, 25 | "applicationUrl": "https://localhost:7294;http://localhost:5115", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | }, 30 | "IIS Express": { 31 | "commandName": "IISExpress", 32 | "launchBrowser": true, 33 | "environmentVariables": { 34 | "ASPNETCORE_ENVIRONMENT": "Development" 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/TodoItem.cs: -------------------------------------------------------------------------------- 1 | using System.ComponentModel.DataAnnotations; 2 | 3 | namespace Chapter_4___Handling_HTTP_Methods_and_Routing 4 | { 5 | public class TodoItem 6 | 7 | { 8 | 9 | public int Id { get; set; } 10 | 11 | public DateTime StartDate { get; set; } 12 | 13 | public DateTime DueDate { get; set; } 14 | 15 | [Required(ErrorMessage = "You need to add a title my dude!")] 16 | public string Title { get; set; } 17 | 18 | public string Description { get; set; } 19 | 20 | public string Assignee { get; set; } 21 | 22 | public int Priority { get; set; } 23 | 24 | public bool IsComplete { get; set; } 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Chapter 4 - Handling HTTP Methods and Routing.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 63037eef6ddaa661db2255c645ecc219b388bc1cc3c69f1db61397bdf504f297 2 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.MvcApplicationPartsAssemblyInfo.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.MvcApplicationPartsAssemblyInfo.cache -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.assets.cache -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.csproj.BuildWithSkipAnalyzers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.csproj.BuildWithSkipAnalyzers -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | ef584af5e629fd1b4c90c80b9b57bb42baf4c81d852eb3a10b3d81565a93cc83 2 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.dll -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 600d1c6da6214fd2a064e521021cdc628b78cdb3d346a048789e434de44c2f1b 2 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.pdb -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/Chapter 4 - Handling HTTP Methods and Routing.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/07b1f742ab5569cdae8ede0d893bd5e1bacfd0bb/*"}} -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/apphost.exe -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/ref/Chapter 4 - Handling HTTP Methods and Routing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/ref/Chapter 4 - Handling HTTP Methods and Routing.dll -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/refint/Chapter 4 - Handling HTTP Methods and Routing.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/refint/Chapter 4 - Handling HTTP Methods and Routing.dll -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/staticwebassets.build.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/staticwebassets.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "cH3MSwC7PMvjZ35NRkcut9e6rUTaEajXGE8LJwdviJc=", 4 | "Source": "Chapter 4 - Handling HTTP Methods and Routing", 5 | "BasePath": "_content/Chapter 4 - Handling HTTP Methods and Routing", 6 | "Mode": "Default", 7 | "ManifestType": "Build", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [], 11 | "Endpoints": [] 12 | } -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/staticwebassets/msbuild.build.Chapter 4 - Handling HTTP Methods and Routing.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/staticwebassets/msbuild.buildMultiTargeting.Chapter 4 - Handling HTTP Methods and Routing.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/Debug/net9.0/staticwebassets/msbuild.buildTransitive.Chapter 4 - Handling HTTP Methods and Routing.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Chapter04 - Handling HTTP Methods and Routing/Chapter 4 - Handling HTTP Methods and Routing/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "cbuFkZJrMlo=", 4 | "success": true, 5 | "projectFilePath": "E:\\Repos\\Minimal-APIs-in-ASP.NET-8\\Chapter 4 - Handling HTTP Methods and Routing\\Chapter 4 - Handling HTTP Methods and Routing\\Chapter 4 - Handling HTTP Methods and Routing.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_5___The_Middleware_Pipeline 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/ExceptionHandlingMiddleware.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_5___The_Middleware_Pipeline 2 | { 3 | public class ExceptionHandlingMiddleware 4 | { 5 | private readonly RequestDelegate _next; 6 | public ExceptionHandlingMiddleware(RequestDelegate next) 7 | { 8 | _next = next; 9 | } 10 | public async Task InvokeAsync(HttpContext context) 11 | { 12 | try 13 | { 14 | await _next(context); 15 | } 16 | catch (Exception ex) 17 | { 18 | Console.WriteLine($"Exception caught: {ex.Message}"); 19 | context.Response.StatusCode = 500; 20 | await context.Response.WriteAsync("An unexpected error occurred."); 21 | } 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/IPBlockingMiddleware.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_5___The_Middleware_Pipeline 2 | { 3 | public class IPBlockingMiddleware 4 | { 5 | private readonly RequestDelegate _next; 6 | private readonly HashSet _blockedIPs; 7 | public IPBlockingMiddleware(RequestDelegate next, IEnumerable blockedIPs) 8 | { 9 | _next = next; 10 | _blockedIPs = new HashSet(blockedIPs); 11 | } 12 | public async Task InvokeAsync(HttpContext context) 13 | { 14 | var requestIP = context.Connection.RemoteIpAddress?.ToString(); 15 | if (_blockedIPs.Contains(requestIP)) 16 | { 17 | context.Response.StatusCode = 403; 18 | await context.Response.WriteAsync("Your IP is blocked."); 19 | return; 20 | } 21 | await _next(context); 22 | } 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/LoggingMiddleware.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_5___The_Middleware_Pipeline 2 | { 3 | public class LoggingMiddleware 4 | { 5 | private readonly RequestDelegate _next; 6 | public LoggingMiddleware(RequestDelegate next) 7 | { 8 | _next = next; 9 | } 10 | public async Task InvokeAsync(HttpContext context) 11 | { 12 | Console.WriteLine($"Request: {context.Request.Method} {context.Request.Path}"); 13 | await _next(context); 14 | Console.WriteLine($"Response: {context.Response.StatusCode}"); 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/MySuperSimpleMiddlewareClass.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_5___The_Middleware_Pipeline 2 | { 3 | public class MySuperSimpleMiddlewareClass 4 | { 5 | private readonly RequestDelegate _next; 6 | 7 | public MySuperSimpleMiddlewareClass(RequestDelegate next) 8 | { 9 | _next = next; 10 | } 11 | 12 | public async Task InvokeAsync(HttpContext context) 13 | { 14 | Console.WriteLine("Request handled by middleware component"); 15 | await _next(context); 16 | Console.WriteLine("Response handled by middleware component"); 17 | } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:14136", 8 | "sslPort": 44359 9 | } 10 | }, 11 | "profiles": { 12 | "http": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": true, 16 | "applicationUrl": "http://localhost:5086", 17 | "environmentVariables": { 18 | "ASPNETCORE_ENVIRONMENT": "Development" 19 | } 20 | }, 21 | "https": { 22 | "commandName": "Project", 23 | "dotnetRunMessages": true, 24 | "launchBrowser": true, 25 | "applicationUrl": "https://localhost:7287;http://localhost:5086", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | }, 30 | "IIS Express": { 31 | "commandName": "IISExpress", 32 | "launchBrowser": true, 33 | "environmentVariables": { 34 | "ASPNETCORE_ENVIRONMENT": "Development" 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/obj/Chapter 5 - The Middleware Pipeline.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/obj/Debug/net9.0/Chapter 5 - The Middleware Pipeline.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | b65efe1275718b0461277ec03c97017298af604b91b21b85700c1b5d18c7870b 2 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/obj/Debug/net9.0/Chapter 5 - The Middleware Pipeline.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/obj/Debug/net9.0/Chapter 5 - The Middleware Pipeline.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/obj/Debug/net9.0/Chapter 5 - The Middleware Pipeline.assets.cache -------------------------------------------------------------------------------- /Chapter05 - The Middleware Pipeline/Chapter 5 - The Middleware Pipeline/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "7YbI1+52SeQ=", 4 | "success": true, 5 | "projectFilePath": "E:\\Repos\\Minimal-APIs-in-ASP.NET-8\\Chapter 5 - The Middleware Pipeline\\Chapter 5 - The Middleware Pipeline\\Chapter 5 - The Middleware Pipeline.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_7___Dependency_Injection_In_Minimal_APIs 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/DeliveryDateBookingService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Concurrent; 2 | namespace Chapter_7___Dependency_Injection_In_Minimal_APIs 3 | { 4 | public class DeliveryDateBookingService 5 | { 6 | private ConcurrentQueue _availableDates = new ConcurrentQueue(); 7 | public DeliveryDateBookingService() 8 | { 9 | _availableDates.Enqueue(DateTime.Now.AddDays(1)); 10 | _availableDates.Enqueue(DateTime.Now.AddDays(2)); 11 | _availableDates.Enqueue(DateTime.Now.AddDays(3)); 12 | _availableDates.Enqueue(DateTime.Now.AddDays(4)); 13 | _availableDates.Enqueue(DateTime.Now.AddDays(5)); 14 | } 15 | public DateTime GetNextAvailableDate() 16 | { 17 | if (_availableDates.Count == 0) 18 | { 19 | throw new Exception("No Dates Available"); 20 | } 21 | var dequeuedDate = _availableDates.TryDequeue(out var result); 22 | if (dequeuedDate == false) 23 | { 24 | throw new Exception("An error occured"); 25 | } 26 | return result; 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/Order.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_7___Dependency_Injection_In_Minimal_APIs 2 | { 3 | public class Order 4 | { 5 | public int Id { get; set; } 6 | public List Products { get; set; } 7 | public float DiscountAmount { get; set; } 8 | public DateTime DeliveryDate { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/Product.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_7___Dependency_Injection_In_Minimal_APIs 2 | { 3 | public class Product 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | public string Description { get; set; } 8 | public float RRP { get; set; } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/ProductRepository.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_7___Dependency_Injection_In_Minimal_APIs 2 | { 3 | public class ProductRepository 4 | { 5 | public List Products { get; private set; } 6 | public ProductRepository(ProductRetrievalService productRetrievalService) 7 | { 8 | Products = productRetrievalService.LoadProducts(); 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/ProductRetrievalService.cs: -------------------------------------------------------------------------------- 1 | using System.Text.Json; 2 | namespace Chapter_7___Dependency_Injection_In_Minimal_APIs 3 | { 4 | public class ProductRetrievalService 5 | { 6 | private const string _dataPath = @"C:/Products.json"; 7 | public List LoadProducts() 8 | { 9 | var productJson = File.ReadAllText(_dataPath); 10 | return JsonSerializer.Deserialize>(productJson); 11 | } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/Products.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Id": 1, 4 | "Name": "Laptop", 5 | "Description": "A high-performance laptop suitable for all your computing needs.", 6 | "RRP": 999.99 7 | }, 8 | { 9 | "Id": 2, 10 | "Name": "Smartphone", 11 | "Description": "A latest generation smartphone with a stunning display and excellent camera.", 12 | "RRP": 799.99 13 | }, 14 | { 15 | "Id": 3, 16 | "Name": "Headphones", 17 | "Description": "Noise-cancelling headphones with superior sound quality.", 18 | "RRP": 199.99 19 | }, 20 | { 21 | "Id": 4, 22 | "Name": "Smartwatch", 23 | "Description": "A smartwatch with fitness tracking and health monitoring features.", 24 | "RRP": 299.99 25 | }, 26 | { 27 | "Id": 5, 28 | "Name": "Tablet", 29 | "Description": "A lightweight tablet with a vibrant display, perfect for entertainment on the go.", 30 | "RRP": 399.99 31 | } 32 | ] -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:56715", 8 | "sslPort": 44332 9 | } 10 | }, 11 | "profiles": { 12 | "http": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": true, 16 | "applicationUrl": "http://localhost:5041", 17 | "environmentVariables": { 18 | "ASPNETCORE_ENVIRONMENT": "Development" 19 | } 20 | }, 21 | "https": { 22 | "commandName": "Project", 23 | "dotnetRunMessages": true, 24 | "launchBrowser": true, 25 | "applicationUrl": "https://localhost:7195;http://localhost:5041", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | }, 30 | "IIS Express": { 31 | "commandName": "IISExpress", 32 | "launchBrowser": true, 33 | "environmentVariables": { 34 | "ASPNETCORE_ENVIRONMENT": "Development" 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/ServiceCollectionExtensions.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_7___Dependency_Injection_In_Minimal_APIs 2 | { 3 | public static class ServiceCollectionExtensions 4 | { 5 | public static IServiceCollection AddMyServices(this IServiceCollection services) 6 | { 7 | services.AddScoped(); 8 | services.AddSingleton(); 9 | return services; 10 | } 11 | } 12 | 13 | //Interfaces and classes for demonstration purposes only 14 | public interface IMyService { } 15 | public interface IOtherService { } 16 | public class MyService : IMyService { } 17 | public class OtherService : IOtherService { } 18 | 19 | //with the above extension method implemented, you should be able to replace multiple lines of code in Main() of Program.cs with one line to AddMyServices(); 20 | // for example - builder.Services.AddMyServices(); 21 | } 22 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/obj/Chapter 7 - Dependency Injection In Minimal APIs.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/obj/Debug/net9.0/Chapter 7 - Dependency Injection In Minimal APIs.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | df1ad70849d58d2ef8f49368320e7a6cb7755a0d61676402e49c33997b12ed7e 2 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/obj/Debug/net9.0/Chapter 7 - Dependency Injection In Minimal APIs.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/obj/Debug/net9.0/Chapter 7 - Dependency Injection In Minimal APIs.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/obj/Debug/net9.0/Chapter 7 - Dependency Injection In Minimal APIs.assets.cache -------------------------------------------------------------------------------- /Chapter07 - Dependency Injection In Minimal APIs/Chapter 7 - Dependency Injection In Minimal APIs/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "JdSDYTmBn84=", 4 | "success": true, 5 | "projectFilePath": "E:\\Repos\\Minimal-APIs-in-ASP.NET-8\\Chapter 7 - Dependency Injection In Minimal APIs\\Chapter 7 - Dependency Injection In Minimal APIs\\Chapter 7 - Dependency Injection In Minimal APIs.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_8___Integrating_Minimal_APIs_with_Data_Sources 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/Employee.cs: -------------------------------------------------------------------------------- 1 | using MongoDB.Bson.Serialization.Attributes; 2 | 3 | namespace Chapter_8___Integrating_Minimal_APIs_with_Data_Sources 4 | { 5 | public class Employee : IEmployee 6 | { 7 | 8 | public int Id { get; set; } 9 | public string Name { get; set; } 10 | public decimal Salary { get; set; } 11 | public string Address { get; set; } 12 | public string City { get; set; } 13 | public string Region { get; set; } 14 | public string PostalCode { get; set; } 15 | public string Country { get; set; } 16 | public string Phone { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/EmployeeMongoDb.cs: -------------------------------------------------------------------------------- 1 | using MongoDB.Bson.Serialization.Attributes; 2 | namespace Chapter_8___Integrating_Minimal_APIs_with_Data_Sources 3 | { 4 | public class EmployeeMongoDb : IEmployee 5 | { 6 | [BsonId] 7 | [BsonRepresentation(MongoDB.Bson.BsonType.ObjectId)] 8 | public string Id { get; set; } 9 | public string Name { get; set; } 10 | public decimal Salary { get; set; } 11 | public string Address { get; set; } 12 | public string City { get; set; } 13 | public string Region { get; set; } 14 | public string PostalCode { get; set; } 15 | public string Country { get; set; } 16 | public string Phone { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/Employees.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Id": 1, 4 | "Name": "John Doe", 5 | "Salary": 55000.75, 6 | "Address": "123 Elm Street", 7 | "City": "Springfield", 8 | "Region": "IL", 9 | "PostalCode": "62701", 10 | "Country": "USA", 11 | "Phone": "555-1234" 12 | }, 13 | { 14 | "Id": 2, 15 | "Name": "Jane Smith", 16 | "Salary": 62000.50, 17 | "Address": "456 Oak Avenue", 18 | "City": "Metropolis", 19 | "Region": "NY", 20 | "PostalCode": "10001", 21 | "Country": "USA", 22 | "Phone": "555-5678" 23 | } 24 | ] -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/Employees.sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE dbo.Employees 2 | ( 3 | Id int NOT NULL IDENTITY (1, 1), 4 | Name varchar(MAX) NOT NULL, 5 | Salary decimal(10, 2) NOT NULL, 6 | Address varchar(MAX) NOT NULL, 7 | City varchar(50) NOT NULL, 8 | Region varchar(50) NOT NULL, 9 | Country varchar(50) NOT NULL, 10 | Phone varchar(200) NOT NULL 11 | ) -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/IDatabaseService.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_8___Integrating_Minimal_APIs_with_Data_Sources 2 | { 3 | public interface IDatabaseService 4 | { 5 | Task> GetEmployeesAsync(); 6 | Task AddEmployeeAsync(IEmployee employee); 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/IEmployee.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_8___Integrating_Minimal_APIs_with_Data_Sources 2 | { 3 | public interface IEmployee 4 | { 5 | public string Name { get; set; } 6 | public decimal Salary { get; set; } 7 | public string Address { get; set; } 8 | public string City { get; set; } 9 | public string Region { get; set; } 10 | public string PostalCode { get; set; } 11 | public string Country { get; set; } 12 | public string Phone { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*", 9 | "UseMongoDB": false, 10 | "ConnectionStrings": { 11 | "DefaultConnection": "Server=.\\SQLEXPRESS;Database=MyCompany;Trusted_Connection=True;", 12 | "MongoDbConnection": "mongodb://localhost:27017/MyCompany" 13 | } 14 | 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/AWSSDK.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/AWSSDK.Core.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/AWSSDK.SecurityToken.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/AWSSDK.SecurityToken.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.exe -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.pdb -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net9.0", 4 | "frameworks": [ 5 | { 6 | "name": "Microsoft.NETCore.App", 7 | "version": "9.0.0-preview.6.24327.7" 8 | }, 9 | { 10 | "name": "Microsoft.AspNetCore.App", 11 | "version": "9.0.0-preview.6.24328.4" 12 | } 13 | ], 14 | "configProperties": { 15 | "System.GC.Server": true, 16 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.staticwebassets.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/DnsClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/DnsClient.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Employees.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "Id": 1, 4 | "Name": "John Doe", 5 | "Salary": 55000.75, 6 | "Address": "123 Elm Street", 7 | "City": "Springfield", 8 | "Region": "IL", 9 | "PostalCode": "62701", 10 | "Country": "USA", 11 | "Phone": "555-1234" 12 | }, 13 | { 14 | "Id": 2, 15 | "Name": "Jane Smith", 16 | "Salary": 62000.50, 17 | "Address": "456 Oak Avenue", 18 | "City": "Metropolis", 19 | "Region": "NY", 20 | "PostalCode": "10001", 21 | "Country": "USA", 22 | "Phone": "555-5678" 23 | } 24 | ] -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/MongoDB.Bson.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/MongoDB.Bson.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/MongoDB.Driver.Core.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/MongoDB.Driver.Core.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/MongoDB.Driver.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/MongoDB.Driver.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/MongoDB.Libmongocrypt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/MongoDB.Libmongocrypt.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/SharpCompress.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/SharpCompress.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Snappier.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/Snappier.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/System.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/System.Data.SqlClient.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/ZstdSharp.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/ZstdSharp.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*", 9 | "UseMongoDB": false, 10 | "ConnectionStrings": { 11 | "DefaultConnection": "Server=your_server;Database=your_database;User Id=your_user;Password=your_password;", 12 | "MongoDbConnection": "mongodb://localhost:27017/MyCompany" 13 | } 14 | 15 | } 16 | 17 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/linux/native/libmongocrypt.so: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/linux/native/libmongocrypt.so -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/osx/native/libmongocrypt.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/osx/native/libmongocrypt.dylib -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/unix/lib/netcoreapp2.1/System.Data.SqlClient.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win-arm64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win-arm64/native/sni.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win-x64/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win-x64/native/sni.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win-x86/native/sni.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win-x86/native/sni.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win/lib/netcoreapp2.1/System.Data.SqlClient.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win/native/mongocrypt.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/bin/Debug/net9.0/runtimes/win/native/mongocrypt.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter .6FD4A3ED.Up2Date: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter .6FD4A3ED.Up2Date -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | fa666ee06ed9e861a18b51004949a48ef553b4b7f9ced609a20ee066b33ac095 2 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.assets.cache -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | a04d0ca2c051727b6ad44dbc7c4edd01b9b81541c9d9b76cdd7e1216bf77636a 2 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 57c306543a783b64670bdc014c5e2e53bbe4e2ba255fc2c6abb7aa1bb3e1b582 2 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.pdb -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/Chapter 8 - Integrating Minimal APIs with Data Sources.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/07b1f742ab5569cdae8ede0d893bd5e1bacfd0bb/*"}} -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/apphost.exe -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/ref/Chapter 8 - Integrating Minimal APIs with Data Sources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/ref/Chapter 8 - Integrating Minimal APIs with Data Sources.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/refint/Chapter 8 - Integrating Minimal APIs with Data Sources.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/refint/Chapter 8 - Integrating Minimal APIs with Data Sources.dll -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/staticwebassets.build.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/staticwebassets.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "+LQfSDMFSKrQ2kcfWFLx1xtqoof4iJ1uJPQNoGY8hI4=", 4 | "Source": "Chapter 8 - Integrating Minimal APIs with Data Sources", 5 | "BasePath": "_content/Chapter 8 - Integrating Minimal APIs with Data Sources", 6 | "Mode": "Default", 7 | "ManifestType": "Build", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [], 11 | "Endpoints": [] 12 | } -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/Debug/net9.0/staticwebassets/msbuild.build.Chapter 8 - Integrating Minimal APIs with Data Sources.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Chapter08 - Integrating Minimal APIs with Data Sources/Chapter 8 - Integrating Minimal APIs with Data Sources/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "JPV0OEjtM10dZQ7avwJQqzK+1bLOEd8e5UQNAuLhLvNpYZcMoyL1neogSwQQgLGyjF/3x0kkrVb4ULXw/3FQRA==", 4 | "success": true, 5 | "projectFilePath": "E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\Chapter 8 - Integrating Minimal APIs with Data Sources\\Chapter 8 - Integrating Minimal APIs with Data Sources\\Chapter 8 - Integrating Minimal APIs with Data Sources.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_9___Entity_Framework_Core_and_Dapper 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | all 17 | runtime; build; native; contentfiles; analyzers; buildtransitive 18 | 19 | 20 | 21 | 22 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/Employee.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_9___Entity_Framework_Core_and_Dapper 2 | { 3 | public class Employee : IEmployee 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | public decimal Salary { get; set; } 8 | public string Address { get; set; } 9 | public string City { get; set; } 10 | public string Region { get; set; } 11 | public string PostalCode { get; set; } 12 | public string Country { get; set; } 13 | public string Phone { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/Employees.Sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE dbo.Employees 2 | ( 3 | Id int NOT NULL IDENTITY (1, 1), 4 | Name varchar(MAX) NOT NULL, 5 | Salary decimal(10, 2) NOT NULL, 6 | Address varchar(MAX) NOT NULL, 7 | City varchar(50) NOT NULL, 8 | Region varchar(50) NOT NULL, 9 | Country varchar(50) NOT NULL, 10 | Phone varchar(200) NOT NULL 11 | ) -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/IEmployee.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_9___Entity_Framework_Core_and_Dapper 2 | { 3 | public interface IEmployee 4 | { 5 | public string Name { get; set; } 6 | public decimal Salary { get; set; } 7 | public string Address { get; set; } 8 | public string City { get; set; } 9 | public string Region { get; set; } 10 | public string PostalCode { get; set; } 11 | public string Country { get; set; } 12 | public string Phone { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/Models/Employee.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | 3 | namespace Chapter_9___Entity_Framework_Core_and_Dapper.Models 4 | { 5 | public partial class Employee 6 | { 7 | public int Id { get; set; } 8 | public string Title { get; set; } 9 | public string Name { get; set; } 10 | public decimal Salary { get; set; } 11 | public string Address { get; set; } 12 | public string City { get; set; } 13 | public string Region { get; set; } 14 | public string PostalCode { get; set; } 15 | public string Country { get; set; } 16 | public string Phone { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 18814294016c3ccb72dfacd8aef089d009b9e68970958d1d4e72b2578acfdba5 2 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.MvcApplicationPartsAssemblyInfo.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.MvcApplicationPartsAssemblyInfo.cache -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.assets.cache -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 2f7383a54b9967b21dbb1153de3f4733e700b21cd44ec621e03716d7d7b8cd08 2 | -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f/*"}} -------------------------------------------------------------------------------- /Chapter09 - Object Relational Mapping with Entity Framework Core and Dapper/Chapter 9 - Entity Framework Core and Dapper/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "duwbVVvhW9CteannZdjPrYaQdElMFYZ4OyQJpllRoaCEAgiaMUbZ4bivP1eAa6JLcMkEt29VgVZCch/zaHB/Yw==", 4 | "success": true, 5 | "projectFilePath": "E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\Chapter 9 - Entity Framework Core and Dapper\\Chapter 9 - Entity Framework Core and Dapper\\Chapter 9 - Entity Framework Core and Dapper.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_11___Asynchronous_Programming 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/Chapter 11 - Asynchronous Programming.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v9.0", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v9.0": { 9 | "Chapter 11 - Asynchronous Programming/1.0.0": { 10 | "runtime": { 11 | "Chapter 11 - Asynchronous Programming.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "Chapter 11 - Asynchronous Programming/1.0.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/Chapter 11 - Asynchronous Programming.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/Chapter 11 - Asynchronous Programming.dll -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/Chapter 11 - Asynchronous Programming.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/Chapter 11 - Asynchronous Programming.exe -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/Chapter 11 - Asynchronous Programming.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/Chapter 11 - Asynchronous Programming.pdb -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/Chapter 11 - Asynchronous Programming.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net9.0", 4 | "frameworks": [ 5 | { 6 | "name": "Microsoft.NETCore.App", 7 | "version": "9.0.0-preview.6.24327.7" 8 | }, 9 | { 10 | "name": "Microsoft.AspNetCore.App", 11 | "version": "9.0.0-preview.6.24328.4" 12 | } 13 | ], 14 | "configProperties": { 15 | "System.GC.Server": true, 16 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/bin/Debug/net9.0/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Chapter 11 - Asynchronous Programming.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/ApiEndpoints.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ContainingType": "Chapter_11___Asynchronous_Programming.Program\u002B\u003C\u003Ec__DisplayClass0_0", 4 | "Method": "\u003CMain\u003Eb__2", 5 | "RelativePath": "get-result/{requestId}", 6 | "HttpMethod": "GET", 7 | "IsController": false, 8 | "Order": 0, 9 | "Parameters": [ 10 | { 11 | "Name": "requestId", 12 | "Type": "System.String", 13 | "IsRequired": true 14 | } 15 | ], 16 | "ReturnTypes": [ 17 | { 18 | "Type": "System.Void", 19 | "MediaTypes": [], 20 | "StatusCode": 200 21 | } 22 | ] 23 | }, 24 | { 25 | "ContainingType": "Chapter_11___Asynchronous_Programming.Program\u002B\u003C\u003Ec__DisplayClass0_0", 26 | "Method": "\u003CMain\u003Eb__1", 27 | "RelativePath": "start-process", 28 | "HttpMethod": "POST", 29 | "IsController": false, 30 | "Order": 0, 31 | "Parameters": [], 32 | "ReturnTypes": [ 33 | { 34 | "Type": "System.Void", 35 | "MediaTypes": [], 36 | "StatusCode": 200 37 | } 38 | ] 39 | } 40 | ] -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/Chapter 11 - Asynchronous Programming.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/Chapter 11 - Asynchronous Programming.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/Chapter 11 - Asynchronous Programming.assets.cache -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/Chapter 11 - Asynchronous Programming.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/Chapter 11 - Asynchronous Programming.dll -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/Chapter 11 - Asynchronous Programming.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 5199deea9b14666ec0f170f09a68b31cc719b1680503bfeb7d34a348a08c12d3 2 | -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/Chapter 11 - Asynchronous Programming.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/Chapter 11 - Asynchronous Programming.pdb -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/Chapter 11 - Asynchronous Programming.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f/*"}} -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/apphost.exe -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/ref/Chapter 11 - Asynchronous Programming.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/ref/Chapter 11 - Asynchronous Programming.dll -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/refint/Chapter 11 - Asynchronous Programming.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/refint/Chapter 11 - Asynchronous Programming.dll -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/staticwebassets.build.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/Debug/net9.0/staticwebassets.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "pAhh/HArlSnFldcS2QCAbG8TcTjQj7OCS+Wr0z34lTY=", 4 | "Source": "Chapter 11 - Asynchronous Programming", 5 | "BasePath": "_content/Chapter 11 - Asynchronous Programming", 6 | "Mode": "Default", 7 | "ManifestType": "Build", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [], 11 | "Endpoints": [] 12 | } -------------------------------------------------------------------------------- /Chapter11 - Utilising Asynchronous Programming for Scalability/Chapter 11 - Asynchronous Programming/Chapter 11 - Asynchronous Programming/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "7BRUo+qTlDY=", 4 | "success": true, 5 | "projectFilePath": "E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\Chapter 11 - Utilising Asynchronous Programming for Scalability\\Chapter 11 - Asynchronous Programming\\Chapter 11 - Asynchronous Programming\\Chapter 11 - Asynchronous Programming.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/Chapter 12 - Caching Strategies for Enhanced Performance.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_9___Entity_Framework_Core_and_Dapper 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | all 17 | runtime; build; native; contentfiles; analyzers; buildtransitive 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/Chapter 9 - Entity Framework Core and Dapper.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/Employee.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_9___Entity_Framework_Core_and_Dapper 2 | { 3 | public class Employee : IEmployee 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | public decimal Salary { get; set; } 8 | public string Address { get; set; } 9 | public string City { get; set; } 10 | public string Region { get; set; } 11 | public string PostalCode { get; set; } 12 | public string Country { get; set; } 13 | public string Phone { get; set; } 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/Employees.Sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE dbo.Employees 2 | ( 3 | Id int NOT NULL IDENTITY (1, 1), 4 | Name varchar(MAX) NOT NULL, 5 | Salary decimal(10, 2) NOT NULL, 6 | Address varchar(MAX) NOT NULL, 7 | City varchar(50) NOT NULL, 8 | Region varchar(50) NOT NULL, 9 | Country varchar(50) NOT NULL, 10 | Phone varchar(200) NOT NULL 11 | ) -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/IEmployee.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_9___Entity_Framework_Core_and_Dapper 2 | { 3 | public interface IEmployee 4 | { 5 | public string Name { get; set; } 6 | public decimal Salary { get; set; } 7 | public string Address { get; set; } 8 | public string City { get; set; } 9 | public string Region { get; set; } 10 | public string PostalCode { get; set; } 11 | public string Country { get; set; } 12 | public string Phone { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/Models/Employee.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | 3 | namespace Chapter_9___Entity_Framework_Core_and_Dapper.Models 4 | { 5 | public partial class Employee 6 | { 7 | public int Id { get; set; } 8 | public string Title { get; set; } 9 | public string Name { get; set; } 10 | public decimal Salary { get; set; } 11 | public string Address { get; set; } 12 | public string City { get; set; } 13 | public string Region { get; set; } 14 | public string PostalCode { get; set; } 15 | public string Country { get; set; } 16 | public string Phone { get; set; } 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:19966", 8 | "sslPort": 44381 9 | } 10 | }, 11 | "profiles": { 12 | "http": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": true, 16 | "applicationUrl": "http://localhost:5072", 17 | "environmentVariables": { 18 | "ASPNETCORE_ENVIRONMENT": "Development" 19 | } 20 | }, 21 | "https": { 22 | "commandName": "Project", 23 | "dotnetRunMessages": true, 24 | "launchBrowser": true, 25 | "applicationUrl": "https://localhost:7231;http://localhost:5072", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | }, 30 | "IIS Express": { 31 | "commandName": "IISExpress", 32 | "launchBrowser": true, 33 | "environmentVariables": { 34 | "ASPNETCORE_ENVIRONMENT": "Development" 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter .4293E544.Up2Date: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter .4293E544.Up2Date -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 0294fb3f4d25b87c1539da4c0ba33798bec298d99059fd873126d76bdad80dde 2 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.assets.cache -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.BuildWithSkipAnalyzers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.BuildWithSkipAnalyzers -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | b1dc68f33c0a3b45b05bb1e0de5dcf6b9c1ca81f86389ac3b15b02308a94d8d0 2 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.dll -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | d0c678d7ed2c363bc9cea96a91c437a52653085a6c9044fe2c7f38769ad8522d 2 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.pdb -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f/*"}} -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 18814294016c3ccb72dfacd8aef089d009b9e68970958d1d4e72b2578acfdba5 2 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.MvcApplicationPartsAssemblyInfo.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.MvcApplicationPartsAssemblyInfo.cache -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.assets.cache -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 2f7383a54b9967b21dbb1153de3f4733e700b21cd44ec621e03716d7d7b8cd08 2 | -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f/*"}} -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/apphost.exe -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/ref/Chapter 12 - Caching Strategies for Enhanced Performance.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/ref/Chapter 12 - Caching Strategies for Enhanced Performance.dll -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/refint/Chapter 12 - Caching Strategies for Enhanced Performance.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/refint/Chapter 12 - Caching Strategies for Enhanced Performance.dll -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/staticwebassets.build.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter12 - Caching Strategies for Enhanced Performance/obj/Debug/net9.0/staticwebassets.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "oV5+2G1utarwxvGAh9z7C8h9oSlapIWOSDnL8oxzCcE=", 4 | "Source": "Chapter 12 - Caching Strategies for Enhanced Performance", 5 | "BasePath": "_content/Chapter 12 - Caching Strategies for Enhanced Performance", 6 | "Mode": "Default", 7 | "ManifestType": "Build", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [], 11 | "Endpoints": [] 12 | } -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/Chapter 13 - Best Practices for Minimal API Development.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_9___Entity_Framework_Core_and_Dapper 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | all 18 | runtime; build; native; contentfiles; analyzers; buildtransitive 19 | 20 | 21 | 22 | 23 | 24 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/Chapter 13 - Best Practices for Minimal API Development.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/Chapter 9 - Entity Framework Core and Dapper.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | 6 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/Employee.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_9___Entity_Framework_Core_and_Dapper 2 | { 3 | public class Employee : IEmployee 4 | { 5 | public int Id { get; set; } 6 | public string Name { get; set; } 7 | public decimal Salary { get; set; } 8 | public string Address { get; set; } 9 | public string City { get; set; } 10 | public string Region { get; set; } 11 | public string PostalCode { get; set; } 12 | public string Country { get; set; } 13 | public string Phone { get; set; } 14 | public int YearsOfService { get; set; } 15 | 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/Employees.Sql: -------------------------------------------------------------------------------- 1 | CREATE TABLE dbo.Employees 2 | ( 3 | Id int NOT NULL IDENTITY (1, 1), 4 | Name varchar(MAX) NOT NULL, 5 | Salary decimal(10, 2) NOT NULL, 6 | Address varchar(MAX) NOT NULL, 7 | City varchar(50) NOT NULL, 8 | Region varchar(50) NOT NULL, 9 | Country varchar(50) NOT NULL, 10 | Phone varchar(200) NOT NULL 11 | ) -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/IAnnualLeaveStrategy.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_9___Entity_Framework_Core_and_Dapper 2 | { 3 | public interface IAnnualLeaveStrategy 4 | { 5 | int CalculateLeaveAllowance(Models.Employee employee); 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/IEmployee.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_9___Entity_Framework_Core_and_Dapper 2 | { 3 | public interface IEmployee 4 | { 5 | public string Name { get; set; } 6 | public decimal Salary { get; set; } 7 | public string Address { get; set; } 8 | public string City { get; set; } 9 | public string Region { get; set; } 10 | public string PostalCode { get; set; } 11 | public string Country { get; set; } 12 | public string Phone { get; set; } 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/Models/Employee.cs: -------------------------------------------------------------------------------- 1 | using Microsoft.EntityFrameworkCore; 2 | 3 | namespace Chapter_9___Entity_Framework_Core_and_Dapper.Models 4 | { 5 | public partial class Employee 6 | { 7 | public int Id { get; set; } 8 | public string Title { get; set; } 9 | public string Name { get; set; } 10 | public decimal Salary { get; set; } 11 | public string Address { get; set; } 12 | public string City { get; set; } 13 | public string Region { get; set; } 14 | public string PostalCode { get; set; } 15 | public string Country { get; set; } 16 | public string Phone { get; set; } 17 | public int YearsOfService { get; set; } 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/PostProbationaryAnnualLeaveStrategy.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_9___Entity_Framework_Core_and_Dapper 2 | { 3 | public class PostProbationaryAnnualLeaveStrategy : IAnnualLeaveStrategy 4 | { 5 | public int CalculateLeaveAllowance(Models.Employee employee) 6 | { 7 | var leaveTotal = 16; 8 | if(employee.Country == "United Kingdom") 9 | { 10 | leaveTotal += 3; 11 | } 12 | if(employee.YearsOfService >= 1) 13 | { 14 | for (int i = 0; i <= employee.YearsOfService; i++) 15 | { 16 | leaveTotal += 1; 17 | } 18 | } 19 | return leaveTotal; 20 | } 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/ProbationaryAnnualLeaveStrategy.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_9___Entity_Framework_Core_and_Dapper 2 | { 3 | public class ProbationaryAnnualLeaveStrategy : IAnnualLeaveStrategy 4 | { 5 | 6 | public int CalculateLeaveAllowance(Models.Employee employee) 7 | { 8 | var leaveTotal = 10; 9 | if(employee.Country == "United Kingdom") 10 | { 11 | leaveTotal += 3; 12 | } 13 | return leaveTotal; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:19966", 8 | "sslPort": 44381 9 | } 10 | }, 11 | "profiles": { 12 | "http": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": true, 16 | "applicationUrl": "http://localhost:5072", 17 | "environmentVariables": { 18 | "ASPNETCORE_ENVIRONMENT": "Development" 19 | } 20 | }, 21 | "https": { 22 | "commandName": "Project", 23 | "dotnetRunMessages": true, 24 | "launchBrowser": true, 25 | "applicationUrl": "https://localhost:7231;http://localhost:5072", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | }, 30 | "IIS Express": { 31 | "commandName": "IISExpress", 32 | "launchBrowser": true, 33 | "environmentVariables": { 34 | "ASPNETCORE_ENVIRONMENT": "Development" 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Chapter 13 - Best Practices for Minimal API Development.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Chapter 9 - Entity Framework Core and Dapper.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter .4293E544.Up2Date: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter .4293E544.Up2Date -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 0294fb3f4d25b87c1539da4c0ba33798bec298d99059fd873126d76bdad80dde 2 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.assets.cache -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.BuildWithSkipAnalyzers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.BuildWithSkipAnalyzers -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | b1dc68f33c0a3b45b05bb1e0de5dcf6b9c1ca81f86389ac3b15b02308a94d8d0 2 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.dll -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | d0c678d7ed2c363bc9cea96a91c437a52653085a6c9044fe2c7f38769ad8522d 2 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.pdb -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 12 - Caching Strategies for Enhanced Performance.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f/*"}} -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 13 - Best Practices for Minimal API Development.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | af3419be8a208a577ae489f313d0de0e1d14cd4834f516f67ddb3594c004a378 2 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 13 - Best Practices for Minimal API Development.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 13 - Best Practices for Minimal API Development.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 13 - Best Practices for Minimal API Development.assets.cache -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 13 - Best Practices for Minimal API Development.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 13 - Best Practices for Minimal API Development.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 18814294016c3ccb72dfacd8aef089d009b9e68970958d1d4e72b2578acfdba5 2 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.MvcApplicationPartsAssemblyInfo.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.MvcApplicationPartsAssemblyInfo.cache -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.assets.cache -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 2f7383a54b9967b21dbb1153de3f4733e700b21cd44ec621e03716d7d7b8cd08 2 | -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/Chapter 9 - Entity Framework Core and Dapper.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f/*"}} -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/apphost.exe -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/ref/Chapter 12 - Caching Strategies for Enhanced Performance.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/ref/Chapter 12 - Caching Strategies for Enhanced Performance.dll -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/refint/Chapter 12 - Caching Strategies for Enhanced Performance.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/refint/Chapter 12 - Caching Strategies for Enhanced Performance.dll -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/staticwebassets.build.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter13 - Best Practices for Minimal API Resiliency/obj/Debug/net9.0/staticwebassets.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "oV5+2G1utarwxvGAh9z7C8h9oSlapIWOSDnL8oxzCcE=", 4 | "Source": "Chapter 12 - Caching Strategies for Enhanced Performance", 5 | "BasePath": "_content/Chapter 12 - Caching Strategies for Enhanced Performance", 6 | "Mode": "Default", 7 | "ManifestType": "Build", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [], 11 | "Endpoints": [] 12 | } -------------------------------------------------------------------------------- /Chapter14 - Tests/Chapter14Tests.csproj: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | false 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter1.F2D293FB.Up2Date: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Debug/net9.0/Chapter1.F2D293FB.Up2Date -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("Chapter14Tests")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("Chapter14Tests")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("Chapter14Tests")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | d154babdf7bca2c83f3df7c0704749b6006ee0df63fabe1e10c148833d1f4840 2 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.GeneratedMSBuildEditorConfig.editorconfig: -------------------------------------------------------------------------------- 1 | is_global = true 2 | build_property.TargetFramework = net9.0 3 | build_property.TargetPlatformMinVersion = 4 | build_property.UsingMicrosoftNETSdkWeb = 5 | build_property.ProjectTypeGuids = 6 | build_property.InvariantGlobalization = 7 | build_property.PlatformNeutralAssembly = 8 | build_property.EnforceExtendedAnalyzerRules = 9 | build_property._SupportedPlatformList = Linux,macOS,Windows 10 | build_property.RootNamespace = Chapter14Tests 11 | build_property.ProjectDir = E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14 - Unit Testing, Compatibility and Deployment of Minimal APIs\Chapter14 - Tests\ 12 | build_property.EnableComHosting = 13 | build_property.EnableGeneratedComInterfaceComImportInterop = 14 | build_property.EffectiveAnalysisLevelStyle = 9.0 15 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::System; 3 | global using global::System.Collections.Generic; 4 | global using global::System.IO; 5 | global using global::System.Linq; 6 | global using global::System.Net.Http; 7 | global using global::System.Threading; 8 | global using global::System.Threading.Tasks; 9 | global using global::Xunit; 10 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.assets.cache -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.csproj.BuildWithSkipAnalyzers: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.csproj.BuildWithSkipAnalyzers -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 61f9ecf018e738f2529e1bd233e946ec4afe8deebc7a9a67b4dd411f011935bd 2 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.dll -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 3b8fd23bef8865b4a7a20018d65472bdbda9f8cb1c436711b334ba996f59f2b3 2 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.pdb -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/Chapter14Tests.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f/*"}} -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/MvcTestingAppManifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "Chapter 14, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null": "E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\Chapter 14\\Chapter 14" 3 | } -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/ref/Chapter14Tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Debug/net9.0/ref/Chapter14Tests.dll -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Debug/net9.0/refint/Chapter14Tests.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Debug/net9.0/refint/Chapter14Tests.dll -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Release/net9.0/Chapter14Tests.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("Chapter14Tests")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("Chapter14Tests")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("Chapter14Tests")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Release/net9.0/Chapter14Tests.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | d6f90e278597e0114effa4c50f3cf74d62fa3dd735d907df201f33f49d3ec991 2 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Release/net9.0/Chapter14Tests.GeneratedMSBuildEditorConfig.editorconfig: -------------------------------------------------------------------------------- 1 | is_global = true 2 | build_property.TargetFramework = net9.0 3 | build_property.TargetPlatformMinVersion = 4 | build_property.UsingMicrosoftNETSdkWeb = 5 | build_property.ProjectTypeGuids = 6 | build_property.InvariantGlobalization = 7 | build_property.PlatformNeutralAssembly = 8 | build_property.EnforceExtendedAnalyzerRules = 9 | build_property._SupportedPlatformList = Linux,macOS,Windows 10 | build_property.RootNamespace = Chapter14Tests 11 | build_property.ProjectDir = E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter14Tests\ 12 | build_property.EnableComHosting = 13 | build_property.EnableGeneratedComInterfaceComImportInterop = 14 | build_property.EffectiveAnalysisLevelStyle = 9.0 15 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Release/net9.0/Chapter14Tests.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::System; 3 | global using global::System.Collections.Generic; 4 | global using global::System.IO; 5 | global using global::System.Linq; 6 | global using global::System.Net.Http; 7 | global using global::System.Threading; 8 | global using global::System.Threading.Tasks; 9 | global using global::Xunit; 10 | -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Release/net9.0/Chapter14Tests.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Release/net9.0/Chapter14Tests.assets.cache -------------------------------------------------------------------------------- /Chapter14 - Tests/obj/Release/net9.0/Chapter14Tests.csproj.AssemblyReference.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14 - Tests/obj/Release/net9.0/Chapter14Tests.csproj.AssemblyReference.cache -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/CalculatorService.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_14 2 | { 3 | public class CalculatorService 4 | { 5 | public int Sum(int[] numbers) 6 | { 7 | return numbers.Sum(); 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/Chapter 14.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | net9.0 5 | enable 6 | enable 7 | Chapter_14 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/Chapter 14.csproj.user: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | https 5 | E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\Properties\PublishProfiles\FolderProfile.pubxml 6 | 7 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/Program.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_14 2 | { 3 | public class Program 4 | { 5 | public static void Main(string[] args) 6 | { 7 | var builder = WebApplication.CreateBuilder(args); 8 | builder.Services.AddTransient(); 9 | var app = builder.Build(); 10 | 11 | 12 | app.MapGet("/", () => "Hello World!"); 13 | 14 | app.MapPost("/SumIntegers", (int[] integers, CalculatorService calculatorService) => 15 | { 16 | var result = calculatorService.Sum(integers); 17 | return Results.Ok(result); 18 | }); 19 | 20 | app.Run(); 21 | } 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/Properties/PublishProfiles/FolderProfile.pubxml: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | false 8 | false 9 | true 10 | Release 11 | Any CPU 12 | FileSystem 13 | bin\Release\net9.0\publish\ 14 | FileSystem 15 | <_TargetId>Folder 16 | 17 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/Properties/PublishProfiles/FolderProfile.pubxml.user: -------------------------------------------------------------------------------- 1 |  2 | 5 | 6 | 7 | <_PublishTargetUrl>E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\bin\Release\net9.0\publish\ 8 | True|2024-09-11T15:19:33.2055910Z||;True|2024-09-11T16:18:48.2368252+01:00||;True|2024-09-11T16:15:13.0181162+01:00||; 9 | 10 | 11 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/Properties/PublishProfiles/NexBotixInternalAPI - Zip Deploy.pubxml.user: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | AQAAANCMnd8BFdERjHoAwE/Cl+sBAAAAVdSPXGpe9k2IifRm9DpvAwAAAAACAAAAAAAQZgAAAAEAACAAAABW/8SW8m84wJTiqJLdD8wwjZaxCW7zB7xUe1vIUdAlfwAAAAAOgAAAAAIAACAAAACQe/0F6az09ZLSRFopEEXpQTq6zQEacX6t87yug+ZMqIAAAACrKtKDTAKz2wYScU3HFpBQJeVacGbHNNlf122YggU8JV6FGebVJd8aZx3KuelDiWfK0B+FrdIfzxZcvWwJFbycHNMeFRgLafiqBepZYAh7Jf7OgyMeLbyB65SBEkZhSIm80P41nAmkgRsTobTs41uBhHQ25tpYR9R32QWX88QxxEAAAAADrZBGDFoKft7o92DK/e2/rnfXkYywDK8kb8eUHsrxdBMDU1JjgIR8AgI9jCQ0skEi+qLIXXcDFuAAqdmwjgzf 10 | 11 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/Properties/launchSettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "$schema": "https://json.schemastore.org/launchsettings.json", 3 | "iisSettings": { 4 | "windowsAuthentication": false, 5 | "anonymousAuthentication": true, 6 | "iisExpress": { 7 | "applicationUrl": "http://localhost:28666", 8 | "sslPort": 44300 9 | } 10 | }, 11 | "profiles": { 12 | "http": { 13 | "commandName": "Project", 14 | "dotnetRunMessages": true, 15 | "launchBrowser": true, 16 | "applicationUrl": "http://localhost:5102", 17 | "environmentVariables": { 18 | "ASPNETCORE_ENVIRONMENT": "Development" 19 | } 20 | }, 21 | "https": { 22 | "commandName": "Project", 23 | "dotnetRunMessages": true, 24 | "launchBrowser": true, 25 | "applicationUrl": "https://localhost:7074;http://localhost:5102", 26 | "environmentVariables": { 27 | "ASPNETCORE_ENVIRONMENT": "Development" 28 | } 29 | }, 30 | "IIS Express": { 31 | "commandName": "IISExpress", 32 | "launchBrowser": true, 33 | "environmentVariables": { 34 | "ASPNETCORE_ENVIRONMENT": "Development" 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*", 9 | "Kestrel": { 10 | "Endpoints": { 11 | "Http": { 12 | "Url": "http://*:8080" 13 | } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/Chapter 14.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v9.0", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v9.0": { 9 | "Chapter 14/1.0.0": { 10 | "runtime": { 11 | "Chapter 14.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "Chapter 14/1.0.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/Chapter 14.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/Chapter 14.exe -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/Chapter 14.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/Chapter 14.pdb -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/Chapter 14.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net9.0", 4 | "frameworks": [ 5 | { 6 | "name": "Microsoft.NETCore.App", 7 | "version": "9.0.0-preview.6.24327.7" 8 | }, 9 | { 10 | "name": "Microsoft.AspNetCore.App", 11 | "version": "9.0.0-preview.6.24328.4" 12 | } 13 | ], 14 | "configProperties": { 15 | "System.GC.Server": true, 16 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/Chapter 14.staticwebassets.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Debug/net9.0/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/Chapter 14.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v9.0", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v9.0": { 9 | "Chapter 14/1.0.0": { 10 | "runtime": { 11 | "Chapter 14.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "Chapter 14/1.0.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/Chapter 14.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/Chapter 14.exe -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/Chapter 14.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/Chapter 14.pdb -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/Chapter 14.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net9.0", 4 | "frameworks": [ 5 | { 6 | "name": "Microsoft.NETCore.App", 7 | "version": "9.0.0-preview.6.24327.7" 8 | }, 9 | { 10 | "name": "Microsoft.AspNetCore.App", 11 | "version": "9.0.0-preview.6.24328.4" 12 | } 13 | ], 14 | "configProperties": { 15 | "System.GC.Server": true, 16 | "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, 17 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/Chapter 14.staticwebassets.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*", 9 | "Kestrel": { 10 | "Endpoints": { 11 | "Http": { 12 | "Url": "http://*:8080" 13 | } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/Chapter 14.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v9.0", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v9.0": { 9 | "Chapter 14/1.0.0": { 10 | "runtime": { 11 | "Chapter 14.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "Chapter 14/1.0.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/Chapter 14.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/Chapter 14.exe -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/Chapter 14.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/Chapter 14.pdb -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/Chapter 14.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net9.0", 4 | "frameworks": [ 5 | { 6 | "name": "Microsoft.NETCore.App", 7 | "version": "9.0.0-preview.6.24327.7" 8 | }, 9 | { 10 | "name": "Microsoft.AspNetCore.App", 11 | "version": "9.0.0-preview.6.24328.4" 12 | } 13 | ], 14 | "configProperties": { 15 | "System.GC.Server": true, 16 | "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, 17 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/Chapter 14.staticwebassets.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*", 9 | "Kestrel": { 10 | "Endpoints": { 11 | "Http": { 12 | "Url": "http://*:8080" 13 | } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/bin/Release/net9.0/publish/web.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Chapter 14.csproj.nuget.g.targets: -------------------------------------------------------------------------------- 1 |  2 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/ApiEndpoints.json: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "ContainingType": "Chapter_14.Program\u002B\u003C\u003Ec", 4 | "Method": "\u003CMain\u003Eb__0_0", 5 | "RelativePath": "", 6 | "HttpMethod": "GET", 7 | "IsController": false, 8 | "Order": 0, 9 | "Parameters": [], 10 | "ReturnTypes": [ 11 | { 12 | "Type": "System.String", 13 | "MediaTypes": [ 14 | "text/plain" 15 | ], 16 | "StatusCode": 200 17 | } 18 | ] 19 | }, 20 | { 21 | "ContainingType": "Chapter_14.Program\u002B\u003C\u003Ec", 22 | "Method": "\u003CMain\u003Eb__0_1", 23 | "RelativePath": "SumIntegers", 24 | "HttpMethod": "POST", 25 | "IsController": false, 26 | "Order": 0, 27 | "Parameters": [ 28 | { 29 | "Name": "integers", 30 | "Type": "System.Int32[]", 31 | "IsRequired": true 32 | } 33 | ], 34 | "ReturnTypes": [ 35 | { 36 | "Type": "System.Void", 37 | "MediaTypes": [], 38 | "StatusCode": 200 39 | } 40 | ] 41 | } 42 | ] -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("Chapter 14")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("Chapter 14")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("Chapter 14")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | 7093507e8a6256c422b5deec58448976bcd0a3bb4ca6d8bab94a4881b050560a 2 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.GeneratedMSBuildEditorConfig.editorconfig: -------------------------------------------------------------------------------- 1 | is_global = true 2 | build_property.TargetFramework = net9.0 3 | build_property.TargetPlatformMinVersion = 4 | build_property.UsingMicrosoftNETSdkWeb = true 5 | build_property.ProjectTypeGuids = 6 | build_property.InvariantGlobalization = 7 | build_property.PlatformNeutralAssembly = 8 | build_property.EnforceExtendedAnalyzerRules = 9 | build_property._SupportedPlatformList = Linux,macOS,Windows 10 | build_property.RootNamespace = Chapter_14 11 | build_property.RootNamespace = Chapter_14 12 | build_property.ProjectDir = E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\ 13 | build_property.EnableComHosting = 14 | build_property.EnableGeneratedComInterfaceComImportInterop = 15 | build_property.RazorLangVersion = 8.0 16 | build_property.SupportLocalizedComponentNames = 17 | build_property.GenerateRazorMetadataSourceChecksumAttributes = 18 | build_property.MSBuildProjectDirectory = E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14 19 | build_property._RazorSourceGeneratorDebug = 20 | build_property.EffectiveAnalysisLevelStyle = 9.0 21 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.MvcApplicationPartsAssemblyInfo.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.MvcApplicationPartsAssemblyInfo.cache -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.assets.cache -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | a7d49246fef97df689027f07d41a258dd5779f5bde89a765039431d860b26eaf 2 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | 08d0f40dccc4cc7d86851354d5a6c951dbb156931f34a568c48e5d500c0c1c57 2 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.pdb -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/Chapter 14.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f/*"}} -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/apphost.exe -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/ref/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/ref/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/refint/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/refint/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/staticwebassets.build.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/staticwebassets.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "TBb8muLWkfNZyO8sHOyNgaxcqhG/8+UbEyGT50MXHI8=", 4 | "Source": "Chapter 14", 5 | "BasePath": "_content/Chapter 14", 6 | "Mode": "Default", 7 | "ManifestType": "Build", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [], 11 | "Endpoints": [] 12 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/staticwebassets/msbuild.build.Chapter 14.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Debug/net9.0/staticwebassets/msbuild.buildTransitive.Chapter 14.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | //------------------------------------------------------------------------------ 2 | // 3 | // This code was generated by a tool. 4 | // Runtime Version:4.0.30319.42000 5 | // 6 | // Changes to this file may cause incorrect behavior and will be lost if 7 | // the code is regenerated. 8 | // 9 | //------------------------------------------------------------------------------ 10 | 11 | using System; 12 | using System.Reflection; 13 | 14 | [assembly: System.Reflection.AssemblyCompanyAttribute("Chapter 14")] 15 | [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] 16 | [assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] 17 | [assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f")] 18 | [assembly: System.Reflection.AssemblyProductAttribute("Chapter 14")] 19 | [assembly: System.Reflection.AssemblyTitleAttribute("Chapter 14")] 20 | [assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] 21 | 22 | // Generated by the MSBuild WriteCodeFragment class. 23 | 24 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.AssemblyInfoInputs.cache: -------------------------------------------------------------------------------- 1 | ecf9041124d9024f00c0c4641f41ea569e6cbc89253c72a096e7a6062537a797 2 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.GeneratedMSBuildEditorConfig.editorconfig: -------------------------------------------------------------------------------- 1 | is_global = true 2 | build_property.TargetFramework = net9.0 3 | build_property.TargetPlatformMinVersion = 4 | build_property.UsingMicrosoftNETSdkWeb = true 5 | build_property.ProjectTypeGuids = 6 | build_property.InvariantGlobalization = 7 | build_property.PlatformNeutralAssembly = 8 | build_property.EnforceExtendedAnalyzerRules = 9 | build_property._SupportedPlatformList = Linux,macOS,Windows 10 | build_property.RootNamespace = Chapter_14 11 | build_property.RootNamespace = Chapter_14 12 | build_property.ProjectDir = E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\ 13 | build_property.EnableComHosting = 14 | build_property.EnableGeneratedComInterfaceComImportInterop = 15 | build_property.RazorLangVersion = 8.0 16 | build_property.SupportLocalizedComponentNames = 17 | build_property.GenerateRazorMetadataSourceChecksumAttributes = 18 | build_property.MSBuildProjectDirectory = E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14 19 | build_property._RazorSourceGeneratorDebug = 20 | build_property.EffectiveAnalysisLevelStyle = 9.0 21 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.GlobalUsings.g.cs: -------------------------------------------------------------------------------- 1 | // 2 | global using global::Microsoft.AspNetCore.Builder; 3 | global using global::Microsoft.AspNetCore.Hosting; 4 | global using global::Microsoft.AspNetCore.Http; 5 | global using global::Microsoft.AspNetCore.Routing; 6 | global using global::Microsoft.Extensions.Configuration; 7 | global using global::Microsoft.Extensions.DependencyInjection; 8 | global using global::Microsoft.Extensions.Hosting; 9 | global using global::Microsoft.Extensions.Logging; 10 | global using global::System; 11 | global using global::System.Collections.Generic; 12 | global using global::System.IO; 13 | global using global::System.Linq; 14 | global using global::System.Net.Http; 15 | global using global::System.Net.Http.Json; 16 | global using global::System.Threading; 17 | global using global::System.Threading.Tasks; 18 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.MvcApplicationPartsAssemblyInfo.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.MvcApplicationPartsAssemblyInfo.cache -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.assets.cache: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.assets.cache -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.csproj.CoreCompileInputs.cache: -------------------------------------------------------------------------------- 1 | 74c1dd3258463512f7c98ff53de61a8c62bef5e10a5636ecd579cf9b4e1b5000 2 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.genruntimeconfig.cache: -------------------------------------------------------------------------------- 1 | dbed208f5765cf7dedebe85bac1ee2aacf3b726905e0f9ff451740655a084e3a 2 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.pdb -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/Chapter 14.sourcelink.json: -------------------------------------------------------------------------------- 1 | {"documents":{"E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\*":"https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-8/ccd7a1cd4e4572cb04ebeaa3d4795bec3ccea30f/*"}} -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/Chapter 14.deps.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeTarget": { 3 | "name": ".NETCoreApp,Version=v9.0", 4 | "signature": "" 5 | }, 6 | "compilationOptions": {}, 7 | "targets": { 8 | ".NETCoreApp,Version=v9.0": { 9 | "Chapter 14/1.0.0": { 10 | "runtime": { 11 | "Chapter 14.dll": {} 12 | } 13 | } 14 | } 15 | }, 16 | "libraries": { 17 | "Chapter 14/1.0.0": { 18 | "type": "project", 19 | "serviceable": false, 20 | "sha512": "" 21 | } 22 | } 23 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/Chapter 14.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/Chapter 14.exe -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/Chapter 14.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/Chapter 14.pdb -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/Chapter 14.runtimeconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "runtimeOptions": { 3 | "tfm": "net9.0", 4 | "frameworks": [ 5 | { 6 | "name": "Microsoft.NETCore.App", 7 | "version": "9.0.0-preview.6.24327.7" 8 | }, 9 | { 10 | "name": "Microsoft.AspNetCore.App", 11 | "version": "9.0.0-preview.6.24328.4" 12 | } 13 | ], 14 | "configProperties": { 15 | "System.GC.Server": true, 16 | "System.Reflection.Metadata.MetadataUpdater.IsSupported": false, 17 | "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/Chapter 14.staticwebassets.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*", 9 | "Kestrel": { 10 | "Endpoints": { 11 | "Http": { 12 | "Url": "http://*:8080" 13 | } 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PubTmp/Out/web.config: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/PublishOutputs.ac5c555206.txt: -------------------------------------------------------------------------------- 1 | E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\obj\Release\net9.0\PubTmp\Out\Chapter 14.exe 2 | E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\obj\Release\net9.0\PubTmp\Out\appsettings.Development.json 3 | E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\obj\Release\net9.0\PubTmp\Out\appsettings.json 4 | E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\obj\Release\net9.0\PubTmp\Out\Chapter 14.dll 5 | E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\obj\Release\net9.0\PubTmp\Out\Chapter 14.deps.json 6 | E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\obj\Release\net9.0\PubTmp\Out\Chapter 14.runtimeconfig.json 7 | E:\Repos\Packt\Minimal-APIs-in-ASP.NET-8\Chapter 14\Chapter 14\obj\Release\net9.0\PubTmp\Out\Chapter 14.pdb 8 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/apphost.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/apphost.exe -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/ref/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/ref/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/refint/Chapter 14.dll: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/PacktPublishing/Minimal-APIs-in-ASP.NET-9/83a401a7d5a64e2bf346e04f261bd344d644e312/Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/refint/Chapter 14.dll -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/staticwebassets.build.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/staticwebassets.build.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "TBb8muLWkfNZyO8sHOyNgaxcqhG/8+UbEyGT50MXHI8=", 4 | "Source": "Chapter 14", 5 | "BasePath": "_content/Chapter 14", 6 | "Mode": "Default", 7 | "ManifestType": "Build", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [], 11 | "Endpoints": [] 12 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/staticwebassets.publish.endpoints.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Endpoints": [] 4 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/staticwebassets.publish.json: -------------------------------------------------------------------------------- 1 | { 2 | "Version": 1, 3 | "Hash": "uEwI1zKrJnJXEeeoGiR8/U94u922LOWYiKJQCV8kaRk=", 4 | "Source": "Chapter 14", 5 | "BasePath": "_content/Chapter 14", 6 | "Mode": "Default", 7 | "ManifestType": "Publish", 8 | "ReferencedProjectsConfiguration": [], 9 | "DiscoveryPatterns": [], 10 | "Assets": [], 11 | "Endpoints": [] 12 | } -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/staticwebassets/msbuild.build.Chapter 14.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | 4 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/Release/net9.0/staticwebassets/msbuild.buildTransitive.Chapter 14.props: -------------------------------------------------------------------------------- 1 |  2 | 3 | -------------------------------------------------------------------------------- /Chapter14- Unit Testing, Compatibility and Deployment of Minimal APIs/obj/project.nuget.cache: -------------------------------------------------------------------------------- 1 | { 2 | "version": 2, 3 | "dgSpecHash": "MH6aC7tKphw=", 4 | "success": true, 5 | "projectFilePath": "E:\\Repos\\Packt\\Minimal-APIs-in-ASP.NET-8\\Chapter 14\\Chapter 14\\Chapter 14.csproj", 6 | "expectedPackageFiles": [], 7 | "logs": [] 8 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2024 Packt 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /TodoItemService.cs: -------------------------------------------------------------------------------- 1 | namespace Chapter_6___Parameter_Binding 2 | { 3 | public class TodoItemService 4 | { 5 | List todoItems = new List(); 6 | public TodoItem GetById(int id) 7 | { 8 | return todoItems.FirstOrDefault(x => x.Id == id); 9 | } 10 | 11 | public List GetTodoItems(bool pastDue, int priority) 12 | { 13 | var todoItemsQuery = todoItems.AsQueryable(); 14 | if (pastDue) 15 | { 16 | todoItemsQuery = todoItemsQuery.Where(x => x.DueDate <= DateTime.Now); 17 | } 18 | if (priority > 0) 19 | { 20 | todoItemsQuery = todoItemsQuery.Where(x => x.Priority == priority); 21 | } 22 | return todoItemsQuery.ToList(); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Information", 5 | "Microsoft.AspNetCore": "Warning" 6 | } 7 | }, 8 | "AllowedHosts": "*" 9 | } 10 | --------------------------------------------------------------------------------