Class UnityMenuLazyBuildContext
Shared, per-install build inputs reused to construct any LazyOnFirstOpen menu view on first show.
Stored once on the menu service so per-menu UnityMenuLazyRegistration entries stay minimal
and large shared data is not duplicated per lazy menu. The theme is the one captured at install time —
runtime theme switching is out of scope.
Inherited Members
Namespace: Serenity.Menu.Infrastructure.Services
Assembly: Serenity.UnityMenu.Infrastructure.dll
Syntax
public class UnityMenuLazyBuildContext
Constructors
UnityMenuLazyBuildContext(IUnityMenuViewInstanceFactory, IMenuServiceSettingsDefinition, Dictionary<string, UiOption[]>, object, MenuUseCases, IViewBrowserService, IEventDispatcherService, List<IFoundationActionDefinition>, string, IUiThemeDefinition, ILogService)
Initializes a new shared lazy build context.
Declaration
public UnityMenuLazyBuildContext(IUnityMenuViewInstanceFactory viewInstanceFactory, IMenuServiceSettingsDefinition menuServiceSettings, Dictionary<string, UiOption[]> uiOptions, object canvas, MenuUseCases menuUseCases, IViewBrowserService viewBrowserService, IEventDispatcherService eventDispatcherService, List<IFoundationActionDefinition> menuActions, string audioServiceId, IUiThemeDefinition theme, ILogService logService)
Parameters
| Type | Name | Description |
|---|---|---|
| IUnityMenuViewInstanceFactory | viewInstanceFactory | |
| IMenuServiceSettingsDefinition | menuServiceSettings | |
| Dictionary<string, UiOption[]> | uiOptions | |
| object | canvas | |
| MenuUseCases | menuUseCases | |
| IViewBrowserService | viewBrowserService | |
| IEventDispatcherService | eventDispatcherService | |
| List<IFoundationActionDefinition> | menuActions | |
| string | audioServiceId | |
| IUiThemeDefinition | theme | |
| ILogService | logService |
Properties
AudioServiceId
Declaration
public string AudioServiceId { get; }
Property Value
| Type | Description |
|---|---|
| string | The audio service identifier used by the view. |
Canvas
Declaration
public object Canvas { get; }
Property Value
| Type | Description |
|---|---|
| object | The canvas the menu views are rendered under. |
EventDispatcherService
Declaration
public IEventDispatcherService EventDispatcherService { get; }
Property Value
| Type | Description |
|---|---|
| IEventDispatcherService | The event dispatcher service used by the view. |
LogService
Declaration
public ILogService LogService { get; }
Property Value
| Type | Description |
|---|---|
| ILogService | The log service used to report lazy build diagnostics. |
MenuActions
Declaration
public List<IFoundationActionDefinition> MenuActions { get; }
Property Value
| Type | Description |
|---|---|
| List<IFoundationActionDefinition> | The foundation action definitions available to menu options. |
MenuServiceSettings
Declaration
public IMenuServiceSettingsDefinition MenuServiceSettings { get; }
Property Value
| Type | Description |
|---|---|
| IMenuServiceSettingsDefinition | The menu service settings definition. |
MenuUseCases
Declaration
public MenuUseCases MenuUseCases { get; }
Property Value
| Type | Description |
|---|---|
| MenuUseCases | The menu use cases bound to each view. |
Theme
Declaration
public IUiThemeDefinition Theme { get; }
Property Value
| Type | Description |
|---|---|
| IUiThemeDefinition | The UI theme captured at install time and applied to lazily-built views. |
UiOptions
Declaration
public Dictionary<string, UiOption[]> UiOptions { get; }
Property Value
| Type | Description |
|---|---|
| Dictionary<string, UiOption[]> | The complete UI options dictionary keyed by menu id, as prepared during installation. |
ViewBrowserService
Declaration
public IViewBrowserService ViewBrowserService { get; }
Property Value
| Type | Description |
|---|---|
| IViewBrowserService | The view browser service used for navigation. |
ViewInstanceFactory
Declaration
public IUnityMenuViewInstanceFactory ViewInstanceFactory { get; }
Property Value
| Type | Description |
|---|---|
| IUnityMenuViewInstanceFactory | Factory that wraps the per-menu CreateView + initial hide sequence. |