Class Root
- Namespace
- The.WPF.Composition
- Assembly
- Instagile.WPF.dll
public class Root : IServices, IServices, IDisposable
- Inheritance
-
Root
- Implements
- Inherited Members
- Extension Methods
Properties
AppName
public string AppName { get; }
Property Value
AppVersion
public string AppVersion { get; }
Property Value
Components
Functions to access built-in entity types added by model features.
public ComponentService Components { get; }
Property Value
Dispatcher
public Dispatcher Dispatcher { get; }
Property Value
Documents
Functions to load and store files or images.
public DocumentService Documents { get; }
Property Value
Environment
public string Environment { get; }
Property Value
Export
public ExportService Export { get; }
Property Value
Import
Functions for copying schema and data from external sources.
public ImportService Import { get; }
Property Value
Licensing
public LicenseService Licensing { get; }
Property Value
Logging
public LogService Logging { get; }
Property Value
Functions to send email.
public MailService Mail { get; }
Property Value
Metadata
public EntityMetadataDictionary Metadata { get; }
Property Value
Persistence
Functions to load and store entities.
public PersistenceService Persistence { get; }
Property Value
Preferences
public PreferenceService Preferences { get; }
Property Value
RPC
Functions to execute registered procedures, either locally or via a remote IEndpoint.
public RPCService RPC { get; }
Property Value
ReplaceSmartPunctuation
public bool ReplaceSmartPunctuation { get; }
Property Value
Screens
public ScreenService Screens { get; }
Property Value
Security
public SecurityService Security { get; }
Property Value
Session
public SessionService Session { get; }
Property Value
Sidebars
public SidebarService Sidebars { get; }
Property Value
Templates
public TemplateService Templates { get; }
Property Value
UICulture
public CultureInfo UICulture { get; }
Property Value
Version
public string Version { get; }
Property Value
Methods
CreateAsync(Root, IShell, IControllerFactory, IPreferenceStore, OnAuthenticateAsync?, OnAuthenticateAsync?, Options)
public static Task<Root> CreateAsync(Root coreServices, IShell shell, IControllerFactory controllerFactory, IPreferenceStore preferenceStore, OnAuthenticateAsync? onLogin, OnAuthenticateAsync? onLogout, Options options)
Parameters
coreServicesRootshellIShellcontrollerFactoryIControllerFactorypreferenceStoreIPreferenceStoreonLoginOnAuthenticateAsynconLogoutOnAuthenticateAsyncoptionsOptions
Returns
CreateContext()
Create an entity context, the unit of work for data access, with the current identity.
public IEntityContext CreateContext()
Returns
CreateContext(IPrincipal)
Create an entity context, the unit of work for data access.
public IEntityContext CreateContext(IPrincipal principal)
Parameters
principalIPrincipalUser identity for the created context.
Returns
CreateSurface()
Create one of whatever the application considers a 'screen'.
public ISurface CreateSurface()
Returns
DestroySurface(ISurface)
Initiate a closing process for one of the shell's screens. This will only work on surfaces returned from CreateSurface().
public void DestroySurface(ISurface surface)
Parameters
surfaceISurface
Remarks
This method may be nonblocking.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
GetGlobalSurface()
Retrieve a singleton 'global' screen for contextless UI.
public ISurface GetGlobalSurface()
Returns
ReloadSurface(ISurface, Func<Task>)
Initiate a reload process (caller-defined) for one of the shell's screens. This will only work on surfaces returned from CreateSurface().
public void ReloadSurface(ISurface surface, Func<Task> reload)
Parameters
Remarks
This method may be nonblocking.