mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-02-20 06:47:44 +01:00
Add plugin error notifications, per-plugin event invocation wrappers
This commit is contained in:
parent
1913a4cd2c
commit
ddf0a97c83
11 changed files with 358 additions and 85 deletions
|
|
@ -23,6 +23,9 @@ namespace Dalamud;
|
|||
[SuppressMessage("ReSharper", "StaticMemberInGenericType", Justification = "Service container static type")]
|
||||
internal static class Service<T> where T : IServiceType
|
||||
{
|
||||
// TODO: Service<T> should only work with singleton services. Trying to call Service<T>.Get() on a scoped service should
|
||||
// be a compile-time error.
|
||||
|
||||
private static readonly ServiceManager.ServiceAttribute ServiceAttribute;
|
||||
private static TaskCompletionSource<T> instanceTcs = new(TaskCreationOptions.RunContinuationsAsynchronously);
|
||||
private static List<Type>? dependencyServices;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue