Skip to main content

ApplicationLifetimeScope

A class in Alta.LifetimeScopes, Alta.ATT.LifetimeScopes.

VContainer scope for the whole application. Registers the API client, login preferences, settings, authentication, player states, XR settings and platform services.

Constructors​

MemberWhat it is
ApplicationLifetimeScope()Creates an ApplicationLifetimeScope with default values.

Fields​

1 private and internal field
MemberWhat it is
private static readonly Logger loggerNLog logger for this class.

Methods​

MemberWhat it is
protected override void ConfigureScope(IContainerBuilder builder)Runs the static application setup, then registers player, platform and Alta platform services and the XR settings controller.
5 private and internal methods
MemberWhat it is
private static void BindServerHostController(IContainerBuilder builder)On a client build, binds IServerHostController to a FakeHostController singleton. Nothing is bound on a server.
private void RegisterAltaPlatformDependencies(IContainerBuilder builder)Registers Alta platform services (the server host controller).
private void RegisterPlatformDependencies(IContainerBuilder builder)Binds the API client, LoginPreferences, SettingsManager and AuthenticationUtility, then the platform-specific ones.
private void RegisterPlatformSpecificDependencies(IContainerBuilder builder)Runs the WindowsInstaller on the builder.
private void RegisterPlayerDependencies(IContainerBuilder builder)Binds IPlayerStateFactory to PlayerStateFactory.