コード例 #1
0
        public IPageProvider Build()
        {
            IPageProvider pageProvider = new WebPageProvider(buildHandler, buildClock);

            buildHandler = null;
            buildClock   = null;

            return(pageProvider);
        }
コード例 #2
0
        public IPageProvider Build()
        {
            IPageProvider pageProvider;

            if (providerType is null)
            {
                pageProvider = new WebPageProvider(buildHandler, buildCache, buildClock);
            }
            else if (providerType.Equals(typeof(WebPageProvider)))
            {
                pageProvider = new WebPageProvider(buildHandler, buildCache, buildClock);
            }
            else
            {
                pageProvider = new WebPageProvider(buildHandler, buildCache, buildClock);
            }

            return(pageProvider);
        }