Skip to content

Commit

Permalink
Return T from `IDependencyResolver.GetService<T>() (#5087)
Browse files Browse the repository at this point in the history
Close #5086
  • Loading branch information
Aaronontheweb committed Jun 10, 2021
1 parent 6a7373f commit dfd7925
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -20,7 +20,7 @@ namespace Akka.DependencyInjection
public interface IDependencyResolver
{
IResolverScope CreateScope();
object GetService<T>();
T GetService<T>();
object GetService(Type type);

/// <summary>
Expand Down
Expand Up @@ -30,7 +30,7 @@ public IResolverScope CreateScope()
return new ServiceProviderScope(ServiceProvider.CreateScope());
}

public object GetService<T>()
public T GetService<T>()
{
return ServiceProvider.GetService<T>();
}
Expand Down

0 comments on commit dfd7925

Please sign in to comment.