当前位置: 首页>>代码示例>>C#>>正文


C# IAppDataFolder类代码示例

本文整理汇总了C#中IAppDataFolder的典型用法代码示例。如果您正苦于以下问题:C# IAppDataFolder类的具体用法?C# IAppDataFolder怎么用?C# IAppDataFolder使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IAppDataFolder类属于命名空间,在下文中一共展示了IAppDataFolder类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: SessionFactoryHolderFactory

        public SessionFactoryHolderFactory(
            ShellSettings shellSettings,
            ShellBlueprint shellBlueprint,
            IDataServicesProviderFactory dataServicesProviderFactory,
            IAppDataFolder appDataFolder,
            ISessionConfigurationCache sessionConfigurationCache,
            IHostEnvironment hostEnvironment,
            IDatabaseCacheConfiguration cacheConfiguration,
            Func<IEnumerable<ISessionConfigurationEvents>> configurers,
            IRepository<ConnectionsRecord> connectionsRecordRepository,
            IEncryptionService encryptionService,
            ICacheManager cacheManager)
        {
            _shellSettings = shellSettings;
            _shellBlueprint = shellBlueprint;
            _dataServicesProviderFactory = dataServicesProviderFactory;
            _appDataFolder = appDataFolder;
            _sessionConfigurationCache = sessionConfigurationCache;
            _hostEnvironment = hostEnvironment;
            _cacheConfiguration = cacheConfiguration;
            _configurers = configurers;
            _connectionsRecordRepository = connectionsRecordRepository;
            _encryptionService = encryptionService;
            _cacheManager = cacheManager;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
开发者ID:SmartFire,项目名称:Orchard.Platform-Modules,代码行数:28,代码来源:SessionFactoryHolderFactory.cs

示例2: DefaultAssemblyProbingFolder

        public DefaultAssemblyProbingFolder(IAppDataFolder appDataFolder, IAssemblyLoader assemblyLoader)
        {
            _appDataFolder = appDataFolder;
            _assemblyLoader = assemblyLoader;

            Logger = NullLogger.Instance;
        }
开发者ID:gokhandisikara,项目名称:Coevery-Framework,代码行数:7,代码来源:DefaultAssemblyProbingFolder.cs

示例3: WarmupReportManager

        public WarmupReportManager(
            ShellSettings shellSettings,
            IAppDataFolder appDataFolder) {
            _appDataFolder = appDataFolder;

            _warmupReportPath = _appDataFolder.Combine("Sites", _appDataFolder.Combine(shellSettings.Name, WarmupReportFilename));
        }
开发者ID:anycall,项目名称:Orchard,代码行数:7,代码来源:WarmupReportManager.cs

示例4: DefaultShellDescriptorCache

        public DefaultShellDescriptorCache(IAppDataFolder appDataFolder)
        {
            _appDataFolder = appDataFolder;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
开发者ID:l1183479157,项目名称:RabbitHub,代码行数:7,代码来源:DefaultShellDescriptorCache.cs

示例5: Init

        public void Init() {
            if (Directory.Exists(_basePath)) {
                Directory.Delete(_basePath, true);
            }

            Directory.CreateDirectory(_basePath);
            _appDataFolder = AppDataFolderTests.CreateAppDataFolder(_basePath);
            _webDownloader = new Mock<IWebDownloader>();
            _orchardServices = new StubOrchardServices();
            ((StubWorkContextAccessor.WorkContextImpl.StubSite) _orchardServices.WorkContext.CurrentSite).BaseUrl = "http://orchardproject.net";

            _settings = new WarmupSettingsPart { Record = new WarmupSettingsPartRecord() };
            _orchardServices.WorkContext.CurrentSite.ContentItem.Weld(_settings);
 
            var builder = new ContainerBuilder();
            builder.RegisterInstance(_appDataFolder).As<IAppDataFolder>();
            builder.RegisterInstance(_orchardServices).As<IOrchardServices>();
            builder.RegisterType<DefaultLockFileManager>().As<ILockFileManager>();
            builder.RegisterType<WarmupUpdater>().As<IWarmupUpdater>();
            builder.RegisterType<StubClock>().As<IClock>();
            builder.RegisterType<WarmupReportManager>().As<IWarmupReportManager>();
            builder.RegisterInstance(new ShellSettings { Name = "Default" }).As<ShellSettings>();
            builder.RegisterInstance(_clock = new StubClock()).As<IClock>();
            builder.RegisterInstance(_webDownloader.Object).As<IWebDownloader>();
            _container = builder.Build();

            _lockFileManager = _container.Resolve<ILockFileManager>();
            _warmupUpdater = _container.Resolve<IWarmupUpdater>();
            _reportManager = _container.Resolve<IWarmupReportManager>();

            _warmupFilename = _appDataFolder.Combine(TenantFolder, "warmup.txt");
            _lockFilename = _appDataFolder.Combine(TenantFolder, "warmup.txt.lock");
        }
开发者ID:wezmag,项目名称:Coevery,代码行数:33,代码来源:WarmupUpdaterTests.cs

示例6: LastSynchronizedDate

        public LastSynchronizedDate(IAppDataFolder appDataFolder, ShellSettings shellSettings) {
            _appDataFolder = appDataFolder;
            _shellSettings = shellSettings;

            _basePath = _appDataFolder.Combine("Sites", _shellSettings.Name, "Packages");
            CreateBaseDirectoryIfItDoesNotExist();
        }
开发者ID:NickAndersonX,项目名称:xodb,代码行数:7,代码来源:LastSynchronizedDate.cs

示例7: DefaultExtensionDependenciesManager

        public DefaultExtensionDependenciesManager(ICacheManager cacheManager, IAppDataFolder appDataFolder) {
            _cacheManager = cacheManager;
            _appDataFolder = appDataFolder;
            _writeThroughToken = new InvalidationToken();

            Logger = NullLogger.Instance;
        }
开发者ID:jecofang01,项目名称:OrchardNoCMS,代码行数:7,代码来源:DefaultExtensionDependenciesManager.cs

示例8: ReportsPersister

 public ReportsPersister(IAppDataFolder appDataFolder, ShellSettings shellSettings)
 {
     _appDataFolder = appDataFolder;
     _shellSettings = shellSettings;
     _dataContractSerializer = new DataContractSerializer(typeof(Report), new [] { typeof(ReportEntry) });
     _reportsFileName = Path.Combine(Path.Combine("Sites", _shellSettings.Name), "reports.dat");
 }
开发者ID:gokhandisikara,项目名称:Coevery-Framework,代码行数:7,代码来源:ReportsPersister.cs

示例9: CustomSessionFactoryHolder

        public CustomSessionFactoryHolder(
            ShellSettings shellSettings,
            ShellBlueprint shellBlueprint,
            IDataServicesProviderFactory dataServicesProviderFactory,
            IAppDataFolder appDataFolder,
            ISessionConfigurationCache sessionConfigurationCache,
            IHostEnvironment hostEnvironment,
            IDatabaseCacheConfiguration cacheConfiguration,
            Func<IEnumerable<ISessionConfigurationEvents>> configurers,
            string provider,
            string connectionString
            )
        {
            _shellSettings = shellSettings;
            _shellBlueprint = shellBlueprint;
            _dataServicesProviderFactory = dataServicesProviderFactory;
            _appDataFolder = appDataFolder;
            _sessionConfigurationCache = sessionConfigurationCache;
            _hostEnvironment = hostEnvironment;
            _cacheConfiguration = cacheConfiguration;
            _configurers = configurers;

            _provider = provider;
            _connectionString = connectionString;

            T = NullLocalizer.Instance;
            Logger = NullLogger.Instance;
        }
开发者ID:SmartFire,项目名称:Orchard.Platform-Modules,代码行数:28,代码来源:CustomSessionFactoryHolder.cs

示例10: ShellSettingsManager

 public ShellSettingsManager(IAppDataFolder appDataFolder,
     ICache cache,
     ILoggerFactory loggerFactory)
 {
     _appDataFolder = appDataFolder;
     _cache = cache;
     _logger = loggerFactory.CreateLogger<ShellSettingsManager>();
 }
开发者ID:284247028,项目名称:Brochard,代码行数:8,代码来源:ShellSettingsManager.cs

示例11: DefaultFileConfigurationSource

        public DefaultFileConfigurationSource(IAppDataFolder appDataFolder, string path) {
            _appDataFolder = appDataFolder;
            if (string.IsNullOrEmpty(path)) {
                throw new ArgumentException("Invalid Filepath", "path");
            }

            Path = path;
        }
开发者ID:jefth,项目名称:OrchardNoCMS,代码行数:8,代码来源:DefaultFileConfigurationSource.cs

示例12: DefaultShellSettingsManager

        public DefaultShellSettingsManager(IAppDataFolder appDataFolder, Lazy<IEnumerable<IShellSettingsManagerEventHandler>> events, ICacheManager cacheManager)
        {
            _appDataFolder = appDataFolder;
            _events = events;
            _cacheManager = cacheManager;

            Logger = NullLogger.Instance;
        }
开发者ID:l1183479157,项目名称:RabbitHub,代码行数:8,代码来源:DefaultShellSettingsManager.cs

示例13: ShellSettingsManager

        public ShellSettingsManager(
            IAppDataFolder appDataFolder, 
            IShellSettingsManagerEventHandler events) {
            _appDataFolder = appDataFolder;
            _events = events;

            T = NullLocalizer.Instance;
        }
开发者ID:Vinna,项目名称:DeepInSummer,代码行数:8,代码来源:ShellSettingsManager.cs

示例14: DbContextFactoryHolder

 public DbContextFactoryHolder(
     ShellSettings shellSettings,
     IEnumerable<IDataServicesProvider> dataServicesProviders,
     IAppDataFolder appDataFolder)
 {
     _shellSettings = shellSettings;
     _dataServicesProviders = dataServicesProviders;
     _appDataFolder = appDataFolder;
 }
开发者ID:nicklv,项目名称:Orchard2,代码行数:9,代码来源:IDbContextFactoryHolder.cs

示例15: DbContextFactoryHolder

 public DbContextFactoryHolder(
     ShellSettings shellSettings,
     IDataServicesProviderFactory dataServicesProviderFactory,
     IAppDataFolder appDataFolder)
 {
     _shellSettings = shellSettings;
     _dataServicesProviderFactory = dataServicesProviderFactory;
     _appDataFolder = appDataFolder;
 }
开发者ID:andyshao,项目名称:Brochard,代码行数:9,代码来源:IDbContextFactoryHolder.cs


注:本文中的IAppDataFolder类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。