Synced
PresentationBackendCatalog.CreateContext
Section titled “PresentationBackendCatalog.CreateContext”
- Creates a presentation context over compatible platform and rendering adapters.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Adapter.Presentation
Declaration
Section titled “Declaration”public Inno.Adapter.Presentation.IPresentationContext Inno.Adapter.Presentation.PresentationBackendCatalog.CreateContext(Inno.Adapter.Presentation.PresentationBackendId backend, Inno.Adapter.Presentation.PresentationBackendOptions options)Parameters
Section titled “Parameters”Parameter backend: Stable presentation implementation selected by the composition root.
Parameter options: Host-owned resources and presentation policy.
Returns
Section titled “Returns”A caller-owned backend-neutral presentation context.
Exceptions
Section titled “Exceptions”Exception T:System.NotSupportedException: Thrown when the selected platform, rendering, and presentation backends are incompatible.
Exception T:System.InvalidOperationException: The selected provider returned no service.