예제 #1
0
        /// <summary>Anies the given request.</summary>
        ///
        /// <param name="request">The request.</param>
        ///
        /// <returns>An IocScopeResponse.</returns>
        public IocScopeResponse Any(IocScope request)
        {
            var response = new IocScopeResponse {
                Results =
                {
                    { typeof(FunqSingletonScope).Name, FunqSingletonScope.Count },
                    { typeof(FunqRequestScope).Name,   FunqRequestScope.Count   },
                    { typeof(FunqNoneScope).Name,      FunqNoneScope.Count      },
                },
            };

            return(response);
        }
예제 #2
0
        /// <summary>Anies the given request.</summary>
        ///
        /// <param name="request">The request.</param>
        ///
        /// <returns>An IocScopeResponse.</returns>
        public IocScopeResponse Any(IocScope request)
        {
            var response = new IocScopeResponse {
                Results = {
                    { typeof(FunqSingletonScope).Name, FunqSingletonScope.Count },
                    { typeof(FunqRequestScope).Name, FunqRequestScope.Count },
                    { typeof(FunqNoneScope).Name, FunqNoneScope.Count },
                },
            };

            return response;
        }