Skip to content

Software Documentation

Antoine Théate edited this page Jun 10, 2022 · 5 revisions

Documentation :

The full documentation can be found in the html.zip file. This documentation has been generated by Doxygen and can be regenerated using the doxygen_html_documentation.bat script.

doxygen_html_documentation.bat -h to get more information on that script.

Usage:

IoC:

DEHP Common library has an Inversion of Control Container implementation based on Autofac.

The container is located under DEHPCommon.AppContainer.Container;

It is necessary to build the DEHP IoC container before using DEHPCommon

public App(ContainerBuilder containerBuilder = null)
{
    containerBuilder ??= new ContainerBuilder();
    //Registering the DST adapter specifics dependencies
    containerBuilder.RegisterType<MainWindowViewModel>().As<IMainWindowViewModel>().SingleInstance();
    //Building the Container 
    DEHPCommon.AppContainer.BuildContainer(containerBuilder);
}

Navigation:

DEHP Common library provides a way to resolve Data Context of views by resolving automatically the view model and its dependencies. The service is called INavigationService and is registered in the IoC container.

void Show<TView>() where TView : Window, new();

Usage of the previous method relies on the naming convention of the ViewModel:

class MyView; class MyViewViewModel

Otherwise the use of the following overload is necessary:

void Show<TView, TViewModel>(TViewModel viewModel = null) where TView : Window, new() where TViewModel : class;

Example of usage:

protected override void OnStartup(StartupEventArgs e)
{
    //Using the container
    using (var scope = DEHPCommon.AppContainer.Container.BeginLifetimeScope())
    {
        scope.Resolve<INavigationService>().Show<MainWindow>();
    }

    base.OnStartup(e);
}

DEH-Common Documentation

  1. Software Documentation

COMET-SDK

  1. Home
  2. Documentation Overview

Build and Release

  1. Build and Release

ECSS-E-TM-10-25A

  1. Overview
  2. Annex A
  3. Annex C
Clone this wiki locally