Skip to content
Permalink
Browse files

Add IOC GetServiceEntry<T>

  • Loading branch information
mythz committed Mar 5, 2020
1 parent 34e97b7 commit 9975e91562024936b96b5e8f1c8771c9c64e9dbf
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/ServiceStack/Funq/Container.Adapter.cs
@@ -125,6 +125,9 @@ public Func<TService> ReverseLazyResolve<TService>()
Register<Func<TArg1, TArg2, TArg3, TService>>(c => (a1, a2, a3) => c.TryResolve<TService>());
return TryResolve<Func<TArg1, TArg2, TArg3, TService>>();
}

public ServiceEntry<TService, Func<Container, TService>> GetServiceEntry<TService>() =>
GetEntry<TService, Func<Container, TService>>(null, throwIfMissing: false);

public bool Exists<TService>()
{

0 comments on commit 9975e91

Please sign in to comment.
You can’t perform that action at this time.