EditorApplication.RunAsync
Section titled “EditorApplication.RunAsync”
- Validates composition, owns the created Editor host and retires resources on exit, cancellation or failure.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Editor.Hosting
Declaration
Section titled “Declaration”public static System.Threading.Tasks.Task<int> Inno.Editor.Hosting.EditorApplication.RunAsync(Inno.Editor.Hosting.EditorLaunchOptions options, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter options: Borrowed catalogs, factories and product configuration; created resources transfer to the host.
Parameter cancellationToken: Cancels before creation or requests orderly owner-thread shutdown.
Returns
Section titled “Returns”Zero after orderly completion; startup, execution and retirement failures propagate.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Options or a required dependency is null.
Exception T:System.ArgumentException: A required location or product selection is invalid.
Exception T:System.NotSupportedException: A selected backend lacks its matching runtime or authoring provider.
Exception T:System.OperationCanceledException: Startup or execution was canceled after resource retirement.
Exception T:System.InvalidOperationException: Product startup or resource retirement fails.