cpl_core.application¶
cpl_core.application.application_abc¶
-
class
cpl_core.application.application_abc.
ApplicationABC
(config: cpl_core.configuration.configuration_abc.ConfigurationABC, services: cpl_core.dependency_injection.service_provider_abc.ServiceProviderABC)¶ Bases:
abc.ABC
ABC for the Application class
- config:
cpl_core.configuration.configuration_abc.ConfigurationABC
Contains object loaded from appsettings
- services:
cpl_core.dependency_injection.service_provider_abc.ServiceProviderABC
Contains instances of prepared objects
-
abstract
configure
()¶ Configure the application
Called by
cpl_core.application.application_abc.ApplicationABC.run
-
abstract
main
()¶ Custom entry point
Called by
cpl_core.application.application_abc.ApplicationABC.run
-
run
()¶ Entry point
Called by custom Application.main
-
async
run_async
()¶ Entry point
Called by custom Application.main
- config:
cpl_core.application.application_builder¶
-
class
cpl_core.application.application_builder.
ApplicationBuilder
(app: Type[cpl_core.application.application_abc.ApplicationABC])¶ Bases:
cpl_core.application.application_builder_abc.ApplicationBuilderABC
This is class is used to build a object of
cpl_core.application.application_abc.ApplicationABC
- app: Type[
cpl_core.application.application_abc.ApplicationABC
] Application to build
-
build
() → cpl_core.application.application_abc.ApplicationABC¶ Creates custom application object
-
async
build_async
() → cpl_core.application.application_abc.ApplicationABC¶ Creates custom application object async
-
use_extension
(extension: Type[cpl_core.application.application_extension_abc.ApplicationExtensionABC])¶
-
use_startup
(startup: Type[cpl_core.application.startup_abc.StartupABC])¶ Sets the custom startup class to use async
- startup: Type[
cpl_core.application.startup_abc.StartupABC
] Startup class to use
- startup: Type[
- app: Type[
cpl_core.application.application_builder_abc¶
-
class
cpl_core.application.application_builder_abc.
ApplicationBuilderABC
(*args)¶ Bases:
abc.ABC
ABC for the
cpl_core.application.application_builder.ApplicationBuilder
-
abstract
build
() → cpl_core.application.application_abc.ApplicationABC¶ Creates custom application object
-
abstract async
build_async
() → cpl_core.application.application_abc.ApplicationABC¶ Creates custom application object async
-
abstract async
use_startup
(startup: Type[cpl_core.application.startup_abc.StartupABC])¶ Sets the custom startup class to use async
- startup: Type[
cpl_core.application.startup_abc.StartupABC
] Startup class to use
- startup: Type[
-
abstract
cpl_core.application.startup_abc¶
-
class
cpl_core.application.startup_abc.
StartupABC
(*args)¶ Bases:
abc.ABC
ABC for the startup class
-
abstract
configure_configuration
(config: cpl_core.configuration.configuration_abc.ConfigurationABC, env: cpl_core.environment.application_environment_abc.ApplicationEnvironmentABC) → cpl_core.configuration.configuration_abc.ConfigurationABC¶ Creates configuration of application
-
abstract
configure_services
(service: cpl_core.dependency_injection.service_collection_abc.ServiceCollectionABC, env: cpl_core.environment.application_environment_abc.ApplicationEnvironmentABC) → cpl_core.dependency_injection.service_provider_abc.ServiceProviderABC¶ Creates service provider
-
abstract