/// <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;
        }
Example #2
0
        /// <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);
            }
Example #5
0
 public ContentController(IWebSiteProvider siteProvider, IContentProvider provider)
 {
     this.siteProvider = siteProvider;
     this.provider = provider;
 }
Example #6
0
 public WebSiteController(IWebSiteProvider siteProvider)
 {
     this.siteProvider = siteProvider;
 }
Example #7
0
 public ContentController(IWebSiteProvider siteProvider, IContentProvider provider)
 {
     this.siteProvider = siteProvider;
     this.provider     = provider;
 }
Example #8
0
 public WebSiteController(IWebSiteProvider siteProvider)
 {
     this.siteProvider = siteProvider;
 }