Vixen
02b45cc4
csharp
public interface IPlatformFactory

Where an application's platform comes from.

Read the guide page for this →

Remarks

The seam that lets the host live below the backends it boots on. Choosing between the desktop platform and the headless one means referencing both, and both are in Platform/ — which CheckArchitecture forbids a Core/ assembly from doing, because a reference upward makes the lower layer unusable without the higher one. So the choice is asked for rather than made, and PlatformHost in the Vixen.App package is the one implementation that ships.

⚠ One method, and no registry. There are two platforms that can run in a desktop process and the choice between them is one question. Android, iOS and Web are separate app heads with separate entry points — a phone cannot fall back to the desktop platform — so there is nothing for a registry to select between there either.

Methods (1)

Used by (3)

  • AppBuilderVixen.App.Hosting
  • FactoryVixen.App
  • PlatformHostVixen.App