Class Program
- Namespace
- McServerLauncher
- Assembly
- McServerLauncher.dll
Cross-platform entry point (Avalonia desktop lifetime).
public static class Program
- Inheritance
-
Program
- Inherited Members
Properties
Instance
This copy's claim to being the only one running, held for as long as the app lives. Null when the guard could not be used at all (see TryAcquire(out bool)).
public static SingleInstance? Instance { get; }
Property Value
Methods
BuildAvaloniaApp()
public static AppBuilder BuildAvaloniaApp()
Returns
- AppBuilder
Main(string[])
[STAThread]
public static void Main(string[] args)
Parameters
argsstring[]
Events
ActivationRequested
Another launch asked for the window. Raised on a background thread.
public static event Action? ActivationRequested
Event Type
Remarks
Here rather than on Instance, which can be let go of and claimed again (see McServerLauncher.Program.ReleaseInstance()): whoever listens keeps listening across that.