/// <summary> /// Creates a new object. /// </summary> /// <param name="provider"></param> public AircraftListJsonBuilder(IWebSiteProvider provider) { _Provider = provider; LoadConfiguration(); var configurationStorage = Factory.Singleton.Resolve<IConfigurationStorage>().Singleton; configurationStorage.ConfigurationChanged += ConfigurationStorage_ConfigurationChanged; }
/// <summary> /// Creates a new object. /// </summary> /// <param name="provider"></param> public AircraftListJsonBuilder(IWebSiteProvider provider) { _Provider = provider; LoadConfiguration(); var configurationStorage = Factory.Singleton.Resolve <IConfigurationStorage>().Singleton; configurationStorage.ConfigurationChanged += ConfigurationStorage_ConfigurationChanged; }
/// <summary> /// See interface docs. /// </summary> public void Initialise(IWebSiteProvider provider) { if (provider == null) { throw new ArgumentNullException("provider"); } Provider = provider; _SharedConfiguration = Factory.Singleton.Resolve <ISharedConfiguration>().Singleton; _FeedManager = Factory.Singleton.Resolve <IFeedManager>().Singleton; _EmptyAircraftList = Factory.Singleton.Resolve <ISimpleAircraftList>(); }
public bool CheckConfiguration(string folder, IWebSiteProvider provider) { if (Folder != folder || !Tested) { Folder = folder; Tested = true; try { Exists = !String.IsNullOrEmpty(Folder) && provider.DirectoryExists(Folder); } catch { Exists = false; } } return(Exists); }
public ContentController(IWebSiteProvider siteProvider, IContentProvider provider) { this.siteProvider = siteProvider; this.provider = provider; }
public WebSiteController(IWebSiteProvider siteProvider) { this.siteProvider = siteProvider; }