Beispiel #1
0
        public static T Get <T>(this IResolutionRoot resolutionRoot)
        {
            var service  = typeof(T);
            var provider = resolutionRoot.ResolveProvider <T>();

            var request = new ResolveRequest(resolutionRoot.Root, service);

            return((T)provider.ResolveValue(request));
        }