mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
This reverts commit 37bcff84b1.
This commit is contained in:
parent
37bcff84b1
commit
70249a4db0
2 changed files with 2 additions and 2 deletions
|
|
@ -336,7 +336,7 @@ internal static class ServiceManager
|
||||||
|
|
||||||
foreach (var serviceType in Assembly.GetExecutingAssembly().GetTypes())
|
foreach (var serviceType in Assembly.GetExecutingAssembly().GetTypes())
|
||||||
{
|
{
|
||||||
if (serviceType.IsAbstract || !serviceType.IsAssignableTo(typeof(IServiceType)))
|
if (!serviceType.IsAssignableTo(typeof(IServiceType)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
// Scoped services shall never be unloaded here.
|
// Scoped services shall never be unloaded here.
|
||||||
|
|
|
||||||
|
|
@ -176,7 +176,7 @@ internal static class Service<T> where T : IServiceType
|
||||||
{
|
{
|
||||||
foreach (var serviceType in Assembly.GetExecutingAssembly().GetTypes())
|
foreach (var serviceType in Assembly.GetExecutingAssembly().GetTypes())
|
||||||
{
|
{
|
||||||
if (serviceType.IsAbstract || !serviceType.IsAssignableTo(typeof(IServiceType)))
|
if (!serviceType.IsAssignableTo(typeof(IServiceType)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (serviceType == typeof(PluginManager))
|
if (serviceType == typeof(PluginManager))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue