mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
fix: PM should not depend on scoped plugin services, their lifetime is managed by scopes
This commit is contained in:
parent
6a055783ba
commit
71bf9fdcf2
1 changed files with 4 additions and 0 deletions
|
|
@ -154,6 +154,10 @@ internal static class Service<T> where T : IServiceType
|
|||
if (attr == null)
|
||||
continue;
|
||||
|
||||
// Scoped plugin services lifetime is tied to their scopes. They go away when LocalPlugin goes away.
|
||||
if (serviceType.GetServiceKind() == ServiceManager.ServiceKind.ScopedService)
|
||||
continue;
|
||||
|
||||
ServiceManager.Log.Verbose("PluginManager MUST depend on {Type}", serviceType.FullName!);
|
||||
res.Add(serviceType);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue