mirror of
https://github.com/goatcorp/Dalamud.git
synced 2026-01-02 05:43:40 +01:00
feat: enable early loaded services to wait for provided services, some rewrites to make service kind declaration more explicit
This commit is contained in:
parent
0690f5dd2a
commit
2bdb837577
4 changed files with 37 additions and 26 deletions
|
|
@ -123,6 +123,8 @@ internal static class Service<T> where T : IServiceType
|
|||
public static List<Type> GetDependencyServices()
|
||||
{
|
||||
var res = new List<Type>();
|
||||
|
||||
ServiceManager.Log.Verbose("Service<{0}>: Getting dependencies", typeof(T).Name);
|
||||
|
||||
var ctor = GetServiceConstructor();
|
||||
if (ctor != null)
|
||||
|
|
@ -181,6 +183,11 @@ internal static class Service<T> where T : IServiceType
|
|||
res.Add(serviceType);
|
||||
}
|
||||
}
|
||||
|
||||
foreach (var type in res)
|
||||
{
|
||||
ServiceManager.Log.Verbose("Service<{0}>: => Dependency: {1}", typeof(T).Name, type.Name);
|
||||
}
|
||||
|
||||
return res
|
||||
.Distinct()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue