// Generated API outline. Implementation bodies omitted.
#nullable enable
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Threading.Tasks;
using System.Threading;
using System;
namespace Xui.Core.DI
{
using Microsoft.Extensions.DependencyInjection;
using Xui.Core.Abstract;
public static class ApplicationExtensions
{
///
/// Creates a DI scope, resolves from it, and shows it.
/// The scope is added to the window's so it is disposed
/// automatically when the window closes (assuming is true).
///
public static void CreateAndShowOnce(this Application app)
where TWindow : Window;
///
/// Like , but also calls
/// after the window closes and its scope is disposed. Use this for the application's main window
/// so that closing it terminates the process.
///
public static void CreateAndShowMainWindowOnce(this Application app)
where TWindow : Window;
}
}
namespace Xui.Core.DI
{
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Xui.Core.Abstract;
public static class HostExtensions
{
public static int Run(this IHost host)
where TApplication : Application;
}
}