コード例 #1
0
        /// <summary>
        /// Gets an instance of the <see cref="ResolveContext.RequestedType"/> from the container,
        /// using the scope from the <paramref name="context"/>.
        /// </summary>
        /// <param name="context">The resolve context</param>
        /// <returns>An instance of the type that was requested.</returns>
        public object Resolve(ResolveContext context)
        {
#if !ENABLE_IL_EMIT
            return(GetFactory(context)(context));
#else
            return(_dynCache.Resolve(context));
#endif
        }