本文整理汇总了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;
}
示例2: DefaultAssemblyProbingFolder
public DefaultAssemblyProbingFolder(IAppDataFolder appDataFolder, IAssemblyLoader assemblyLoader)
{
_appDataFolder = appDataFolder;
_assemblyLoader = assemblyLoader;
Logger = NullLogger.Instance;
}
示例3: WarmupReportManager
public WarmupReportManager(
ShellSettings shellSettings,
IAppDataFolder appDataFolder) {
_appDataFolder = appDataFolder;
_warmupReportPath = _appDataFolder.Combine("Sites", _appDataFolder.Combine(shellSettings.Name, WarmupReportFilename));
}
示例4: DefaultShellDescriptorCache
public DefaultShellDescriptorCache(IAppDataFolder appDataFolder)
{
_appDataFolder = appDataFolder;
T = NullLocalizer.Instance;
Logger = NullLogger.Instance;
}
示例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");
}
示例6: LastSynchronizedDate
public LastSynchronizedDate(IAppDataFolder appDataFolder, ShellSettings shellSettings) {
_appDataFolder = appDataFolder;
_shellSettings = shellSettings;
_basePath = _appDataFolder.Combine("Sites", _shellSettings.Name, "Packages");
CreateBaseDirectoryIfItDoesNotExist();
}
示例7: DefaultExtensionDependenciesManager
public DefaultExtensionDependenciesManager(ICacheManager cacheManager, IAppDataFolder appDataFolder) {
_cacheManager = cacheManager;
_appDataFolder = appDataFolder;
_writeThroughToken = new InvalidationToken();
Logger = NullLogger.Instance;
}
示例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");
}
示例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;
}
示例10: ShellSettingsManager
public ShellSettingsManager(IAppDataFolder appDataFolder,
ICache cache,
ILoggerFactory loggerFactory)
{
_appDataFolder = appDataFolder;
_cache = cache;
_logger = loggerFactory.CreateLogger<ShellSettingsManager>();
}
示例11: DefaultFileConfigurationSource
public DefaultFileConfigurationSource(IAppDataFolder appDataFolder, string path) {
_appDataFolder = appDataFolder;
if (string.IsNullOrEmpty(path)) {
throw new ArgumentException("Invalid Filepath", "path");
}
Path = path;
}
示例12: DefaultShellSettingsManager
public DefaultShellSettingsManager(IAppDataFolder appDataFolder, Lazy<IEnumerable<IShellSettingsManagerEventHandler>> events, ICacheManager cacheManager)
{
_appDataFolder = appDataFolder;
_events = events;
_cacheManager = cacheManager;
Logger = NullLogger.Instance;
}
示例13: ShellSettingsManager
public ShellSettingsManager(
IAppDataFolder appDataFolder,
IShellSettingsManagerEventHandler events) {
_appDataFolder = appDataFolder;
_events = events;
T = NullLocalizer.Instance;
}
示例14: DbContextFactoryHolder
public DbContextFactoryHolder(
ShellSettings shellSettings,
IEnumerable<IDataServicesProvider> dataServicesProviders,
IAppDataFolder appDataFolder)
{
_shellSettings = shellSettings;
_dataServicesProviders = dataServicesProviders;
_appDataFolder = appDataFolder;
}
示例15: DbContextFactoryHolder
public DbContextFactoryHolder(
ShellSettings shellSettings,
IDataServicesProviderFactory dataServicesProviderFactory,
IAppDataFolder appDataFolder)
{
_shellSettings = shellSettings;
_dataServicesProviderFactory = dataServicesProviderFactory;
_appDataFolder = appDataFolder;
}