Class Minishell
public sealed class Minishell : IShell
- Inheritance
-
Minishell
- Implements
- Inherited Members
Constructors
Minishell()
public Minishell()
Minishell(OnInit)
public Minishell(OnInit onInit)
Parameters
onInitOnInit
Methods
AddSidebar(ISidebarController)
public void AddSidebar(ISidebarController sidebar)
Parameters
sidebarISidebarController
CreateSurface(IServices)
Create one of whatever the application considers a 'screen'
public ISurface CreateSurface(IServices services)
Parameters
servicesIServices
Returns
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
createControllerFunc<ISurface, IModalController<T>>onCompletedAction<T>onCancelledActionhttpClientFactoryIHttpClientFactoryupdateServerAddressUri
Returns
Type Parameters
T
DestroySurface(ISurface)
Initiate a closing process for a non-global screen
public void DestroySurface(ISurface surface)
Parameters
surfaceISurface
GetGlobalSurface(IServices)
Retrieve a singleton 'global' screen for contextless UI
public ISurface GetGlobalSurface(IServices services)
Parameters
servicesIServices
Returns
ReloadSurface(ISurface, Func<Task>)
Initiate a reload process (caller-defined) for a non-global screen
public void ReloadSurface(ISurface surface, Func<Task> reload)
Parameters
RemoveSidebar(ISidebarController)
public void RemoveSidebar(ISidebarController sidebar)
Parameters
sidebarISidebarController
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
servicesIServices