Skip to content

Repository files navigation

Add initial implementation of Dependency Injection with various service lifetimes

  • Created launchSettings.json for project configuration.
  • Implemented RequestTracker class for tracking request IDs.
  • Developed ServiceA and ServiceB for scope lifetime.
  • Developed RequestTracker, ServiceA, and ServiceB for singleton lifetime.
  • Developed RequestTracker, ServiceA, and ServiceB for transient lifetime.
  • Added ClientService, DependencyServiceV1, and DependencyServiceV2 for client and dependency management.
  • Created InitializerData class for data initialization resoive at startup.
  • Developed IPaymentProvider interface to factory implement payment providers.
  • Added multiple registrations for services with different lifetimes in DependencyInjection.
  • Implemented payment provider interfaces and services (PayPalService and StripeService).
  • Created WeatherService that utilizes ClientService.
  • Registered extension methods for service registrations.
  • Used minimal APIs in Program.cs to set up endpoints for payment processing and service lifetime demonstration.
  • Added appsettings.json and appsettings.Development.json for configuration settings.
  • Included HTTP request examples for testing various endpoints.

About

initial implementation of Dependency Injection with various service lifetimes

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages