diff --git a/Dalamud/IoC/Internal/ServiceContainer.cs b/Dalamud/IoC/Internal/ServiceContainer.cs index 31d16e02e..6083f5a73 100644 --- a/Dalamud/IoC/Internal/ServiceContainer.cs +++ b/Dalamud/IoC/Internal/ServiceContainer.cs @@ -161,7 +161,7 @@ internal class ServiceContainer : IServiceProvider, IServiceType public IServiceScope GetScope() => new ServiceScopeImpl(this); /// - object? IServiceProvider.GetService(Type serviceType) => this.GetSingletonService(serviceType); + public object? GetService(Type serviceType) => this.GetSingletonService(serviceType).Result; private async Task GetService(Type serviceType, ServiceScopeImpl? scope, object[] scopedObjects) { diff --git a/Dalamud/IoC/Internal/ServiceScope.cs b/Dalamud/IoC/Internal/ServiceScope.cs index 8b12dce0b..70d409b58 100644 --- a/Dalamud/IoC/Internal/ServiceScope.cs +++ b/Dalamud/IoC/Internal/ServiceScope.cs @@ -58,9 +58,9 @@ internal class ServiceScopeImpl : IServiceScope public ServiceScopeImpl(ServiceContainer container) => this.container = container; /// - object? IServiceProvider.GetService(Type serviceType) + public object? GetService(Type serviceType) { - return ((IServiceProvider)this.container).GetService(serviceType); + return this.container.GetService(serviceType); } ///