mirror of
https://github.com/wwiinnddyy/LanMountainDesktop.git
synced 2026-06-22 09:14:25 +08:00
feat.airapp sdk
This commit is contained in:
31
LanMountainDesktop.AirAppSdk/IAirApp.cs
Normal file
31
LanMountainDesktop.AirAppSdk/IAirApp.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.Hosting;
|
||||
|
||||
namespace LanMountainDesktop.AirAppSdk;
|
||||
|
||||
/// <summary>
|
||||
/// Core interface for AirApp entry point.
|
||||
/// </summary>
|
||||
public interface IAirApp
|
||||
{
|
||||
/// <summary>
|
||||
/// Initialize the AirApp and register services.
|
||||
/// Called during host startup before the application is fully running.
|
||||
/// </summary>
|
||||
/// <param name="context">Host builder context</param>
|
||||
/// <param name="services">Service collection for dependency injection</param>
|
||||
void Initialize(HostBuilderContext context, IServiceCollection services);
|
||||
|
||||
/// <summary>
|
||||
/// Called after the host application has started.
|
||||
/// Use this for initialization that requires runtime services.
|
||||
/// </summary>
|
||||
/// <param name="context">AirApp runtime context</param>
|
||||
Task OnStartedAsync(IAirAppRuntimeContext context);
|
||||
|
||||
/// <summary>
|
||||
/// Called when the host application is stopping.
|
||||
/// Use this for cleanup and resource disposal.
|
||||
/// </summary>
|
||||
Task OnStoppingAsync();
|
||||
}
|
||||
Reference in New Issue
Block a user