Search Results for

    Show / Hide Table of Contents

    Interface IApplicationContext

    A context that manages the state of a LemonEdge client application, including the IServiceProvider allowing it to be reconfigured.

    Namespace: LemonEdge.Client.Core.Context
    Assembly: LemonEdge.ClientCore.dll
    Syntax
    public interface IApplicationContext

    Properties

    AddInLoaderHelper

    AddInLoaderHelper used to ensure the proper loading of AddIns at application startup.

    Declaration
    IAddInLoaderHelper AddInLoaderHelper { get; set; }
    Property Value
    Type Description
    IAddInLoaderHelper

    Controller

    The client application controller responsible for creating the main application along with new windows, popups, messages, etc. IModelController

    Declaration
    IModelController Controller { get; set; }
    Property Value
    Type Description
    IModelController

    FactoryInjector

    The IFactoryInjector used to retrieve/create views used at application startup.

    Declaration
    IFactoryInjector FactoryInjector { get; set; }
    Property Value
    Type Description
    IFactoryInjector

    Methods

    BuildServiceProvider()

    Builds and initialises the IServiceProvider

    Declaration
    IServiceProvider BuildServiceProvider()
    Returns
    Type Description
    IServiceProvider

    ConfigureServices(ConnectionType?)

    Configures an IServiceCollection with the required services for the Application to run.

    Declaration
    IServiceCollection ConfigureServices(ConnectionType? connectionType = null)
    Parameters
    Type Name Description
    ConnectionType? connectionType

    Optional: Dictates the services to add to the service collection based on the ConnectionType the application is using. If null, both WebService and Database services will be added

    Returns
    Type Description
    IServiceCollection

    IServiceCollection

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.