public IPageProvider Build() { IPageProvider pageProvider = new WebPageProvider(buildHandler, buildClock); buildHandler = null; buildClock = null; return(pageProvider); }
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); }