/// <summary>
        /// 构造方法。
        /// </summary>
        public CastleProxyFactory(IAspectsFinder aspectsFinder, IServiceLocator locator)
        {
            Check.MustNotNull(aspectsFinder, "aspectsFinder");
            Check.MustNotNull(locator, "locator");

            _aspectsFinder = aspectsFinder;
            _locator = new Lazy<IServiceLocator>(() => locator);
        }
        /// <summary>
        /// 构造方法。
        /// </summary>
        public CastleProxyFactory(IAspectsFinder aspectsFinder)
        {
            Check.MustNotNull(aspectsFinder, "aspectsFinder");

            _aspectsFinder = aspectsFinder;
        }