Beispiel #1
0
 public GetLuceneDirectory(FileSystemSettings fileSystemSettings, IAzureFileSystem azureFileSystem,
     HttpContextBase context)
 {
     _fileSystemSettings = fileSystemSettings;
     _azureFileSystem = azureFileSystem;
     _context = context;
 }
Beispiel #2
0
 public FileMigrationService(IKernel kernel, FileSystemSettings fileSystemSettings, ISession session,
     ICreateBatch createBatch, UrlHelper urlHelper)
 {
     IEnumerable<IFileSystem> fileSystems = TypeHelper.GetAllConcreteTypesAssignableFrom<IFileSystem>()
         .Select(type => kernel.Get(type) as IFileSystem);
     _allFileSystems =
         fileSystems
             .ToDictionary(system => system.GetType().FullName);
     _fileSystemSettings = fileSystemSettings;
     _session = session;
     _createBatch = createBatch;
     _kernel = kernel;
     _urlHelper = urlHelper;
 }
Beispiel #3
0
        public void Initialize(InstallModel model)
        {
            CurrentRequestData.CurrentSite = _site = _session.Get<Site>(_site.Id);
            SetupTasks();
            var siteSettings = new SiteSettings
            {
                TimeZone = model.TimeZone,
                UICulture = model.UiCulture,
                EnableInlineEditing = true,
                SiteIsLive = true,
                FormRendererType = FormRenderingType.Bootstrap3,

            };
            var mediaSettings = new MediaSettings
            {
                ThumbnailImageHeight = 50,
                ThumbnailImageWidth = 50,
                LargeImageHeight = 800,
                LargeImageWidth = 800,
                MediumImageHeight = 500,
                MediumImageWidth = 500,
                SmallImageHeight = 200,
                SmallImageWidth = 200,
                ResizeQuality = 90,
            };
            var mailSettings = new MailSettings
            {
                Port = 25,
            };
            var fileSystemSettings = new FileSystemSettings
            {
                StorageType = typeof(FileSystem).FullName
            };

            _configurationProvider.SaveSettings(siteSettings);
            _configurationProvider.SaveSettings(mediaSettings);
            _configurationProvider.SaveSettings(mailSettings);
            _configurationProvider.SaveSettings(fileSystemSettings);
        }
 public FileSystemSettingsModelBinder(IKernel kernel, FileSystemSettings fileSystemSettings) : base(kernel)
 {
     _fileSystemSettings = fileSystemSettings;
 }
Beispiel #5
0
 public AzureFileSystem(FileSystemSettings fileSystemSettings)
 {
     _fileSystemSettings = fileSystemSettings;
 }