Table of Contents

Class Minishell

Namespace
The.WPF.Shell.SWI
Assembly
Instagile.WPF.dll
public sealed class Minishell : IShell
Inheritance
Minishell
Implements
Inherited Members

Constructors

Minishell()

public Minishell()

Minishell(OnInit)

public Minishell(OnInit onInit)

Parameters

onInit OnInit

Methods

AddSidebar(ISidebarController)

public void AddSidebar(ISidebarController sidebar)

Parameters

sidebar ISidebarController

CreateSurface(IServices)

Create one of whatever the application considers a 'screen'

public ISurface CreateSurface(IServices services)

Parameters

services IServices

Returns

ISurface

Create<T>(Func<ISurface, IModalController<T>>, Action<T>, Action, IHttpClientFactory, Uri)

public static Minishell Create<T>(Func<ISurface, IModalController<T>> createController, Action<T> onCompleted = null, Action onCancelled = null, IHttpClientFactory httpClientFactory = null, Uri updateServerAddress = null)

Parameters

createController Func<ISurface, IModalController<T>>
onCompleted Action<T>
onCancelled Action
httpClientFactory IHttpClientFactory
updateServerAddress Uri

Returns

Minishell

Type Parameters

T

DestroySurface(ISurface)

Initiate a closing process for a non-global screen

public void DestroySurface(ISurface surface)

Parameters

surface ISurface

GetGlobalSurface(IServices)

Retrieve a singleton 'global' screen for contextless UI

public ISurface GetGlobalSurface(IServices services)

Parameters

services IServices

Returns

ISurface

ReloadSurface(ISurface, Func<Task>)

Initiate a reload process (caller-defined) for a non-global screen

public void ReloadSurface(ISurface surface, Func<Task> reload)

Parameters

surface ISurface
reload Func<Task>

RemoveSidebar(ISidebarController)

public void RemoveSidebar(ISidebarController sidebar)

Parameters

sidebar ISidebarController

ResourcesReady()

Called when WPF resources have been loaded, allowing initial display of UI in incomplete state

public void ResourcesReady()

ServicesReady(IServices)

Called when the screen infrastructure is ready, allowing post-construction setup

public Task ServicesReady(IServices services)

Parameters

services IServices

Returns

Task