Table of Contents

Class Root

Namespace
The.Composition
Assembly
Instagile.dll
public sealed class Root : IServices, IDependencyProvider
Inheritance
Root
Implements
Inherited Members

Properties

AppName

public string AppName { get; }

Property Value

string

AppVersion

public string AppVersion { get; }

Property Value

string

Components

Functions to access built-in entity types added by model features.

public ComponentService Components { get; }

Property Value

ComponentService

DefaultCulture

public CultureInfo DefaultCulture { get; }

Property Value

CultureInfo

Documents

Functions to load and store files or images.

public DocumentService Documents { get; }

Property Value

DocumentService

Environment

public string Environment { get; }

Property Value

string

Export

public ExportService Export { get; }

Property Value

ExportService

Import

Functions for copying schema and data from external sources.

public ImportService Import { get; }

Property Value

ImportService

Licensing

public LicenseService Licensing { get; }

Property Value

LicenseService

Logging

public LogService Logging { get; }

Property Value

LogService

Mail

Functions to send email.

public MailService Mail { get; }

Property Value

MailService

Metadata

public EntityMetadataDictionary Metadata { get; }

Property Value

EntityMetadataDictionary

Persistence

Functions to load and store entities.

public PersistenceService Persistence { get; }

Property Value

PersistenceService

RPC

Functions to execute registered procedures, either locally or via a remote IEndpoint.

public RPCService RPC { get; }

Property Value

RPCService

ReplaceSmartPunctuation

public bool ReplaceSmartPunctuation { get; }

Property Value

bool

Security

public SecurityService Security { get; }

Property Value

SecurityService

Version

public string Version { get; }

Property Value

string

Methods

CreateContext()

public EntityContext CreateContext()

Returns

EntityContext

CreateContext(IPrincipal)

public EntityContext CreateContext(IPrincipal principal)

Parameters

principal IPrincipal

Returns

EntityContext

CreatePreferenceServiceAsync(IPreferenceStore)

creates a preference service for the current user

public Task<PreferenceService> CreatePreferenceServiceAsync(IPreferenceStore store)

Parameters

store IPreferenceStore

Returns

Task<PreferenceService>

Remarks

used by application layers with user session management

HarvestDependencies()

public IEnumerable<ServiceDescriptor> HarvestDependencies()

Returns

IEnumerable<ServiceDescriptor>

SetDefaultCulture(CultureInfo)

public static void SetDefaultCulture(CultureInfo defaultCulture)

Parameters

defaultCulture CultureInfo