• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# IDiskProvider类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: PneumaticClient

 public PneumaticClient(IConfigService configService, IHttpProvider httpProvider,
                             IDiskProvider diskProvider)
 {
     _configService = configService;
     _httpProvider = httpProvider;
     _diskProvider = diskProvider;
 }
开发者ID:peterlandry,项目名称:NzbDrone,代码行数:7,代码来源:PneumaticClient.cs


示例2: DiskSpaceService

 public DiskSpaceService(ISeriesService seriesService, IConfigService configService, IDiskProvider diskProvider, Logger logger)
 {
     _seriesService = seriesService;
     _configService = configService;
     _diskProvider = diskProvider;
     _logger = logger;
 }
开发者ID:nnic,项目名称:Sonarr,代码行数:7,代码来源:DiskSpaceService.cs


示例3: AppFolderInfo

        public AppFolderInfo(IDiskProvider diskProvider, IStartupArguments startupArguments)
        {
            _diskProvider = diskProvider;

            if (OsInfo.IsLinux)
            {
                DATA_SPECIAL_FOLDER = Environment.SpecialFolder.ApplicationData;
            }

            _logger =  NzbDroneLogger.GetLogger(this);

            if (startupArguments.Args.ContainsKey(StartupArguments.APPDATA))
            {
                AppDataFolder = startupArguments.Args[StartupArguments.APPDATA];
            }
            else
            {
                AppDataFolder = Path.Combine(Environment.GetFolderPath(DATA_SPECIAL_FOLDER, Environment.SpecialFolderOption.None), "NzbDrone");
            }

            _diskProvider.EnsureFolder(AppDataFolder);

            StartUpFolder = new FileInfo(Assembly.GetExecutingAssembly().Location).Directory.FullName;
            TempFolder = Path.GetTempPath();

            diskProvider.EnsureFolder(AppDataFolder);

            if (!OsInfo.IsLinux)
            {
                SetPermissions();
            }
        }
开发者ID:peterlandry,项目名称:NzbDrone,代码行数:32,代码来源:AppFolderInfo.cs


示例4: SeriesProvider

 public SeriesProvider(IDiskProvider diskProvider, IConfigProvider configProvider, IRepository dataRepository, ITvDbProvider tvDbProvider)
 {
     _diskProvider = diskProvider;
     _config = configProvider;
     _sonioRepo = dataRepository;
     _tvDb = tvDbProvider;
 }
开发者ID:JohnLuc,项目名称:NzbDrone,代码行数:7,代码来源:SeriesProvider.cs


示例5: MediaCoverModule

        public MediaCoverModule(IAppFolderInfo appFolderInfo, IDiskProvider diskProvider) : base("MediaCover")
        {
            _appFolderInfo = appFolderInfo;
            _diskProvider = diskProvider;

            Get[MEDIA_COVER_ROUTE] = options => GetMediaCover(options.seriesId, options.filename);
        }
开发者ID:Djohnnie,项目名称:Sonarr,代码行数:7,代码来源:MediaCoverModule.cs


示例6: ScanWatchFolder

 public ScanWatchFolder(ICacheManager cacheManager, IDiskScanService diskScanService, IDiskProvider diskProvider, Logger logger)
 {
     _logger = logger;
     _diskProvider = diskProvider;
     _diskScanService = diskScanService;
     _watchFolderItemCache = cacheManager.GetCache<Dictionary<string, WatchFolderItem>>(GetType());
 }
开发者ID:mike-tesch,项目名称:Sonarr,代码行数:7,代码来源:ScanWatchFolder.cs


示例7: DbFactory

 public DbFactory(IMigrationController migrationController,
                  IConnectionStringFactory connectionStringFactory,
                  IDiskProvider diskProvider)
 {
     _migrationController = migrationController;
     _connectionStringFactory = connectionStringFactory;
     _diskProvider = diskProvider;
 }
开发者ID:drewfreyling,项目名称:NzbDrone,代码行数:8,代码来源:DbFactory.cs


示例8: CleanExtraFileService

 public CleanExtraFileService(IMetadataFileService metadataFileService,
                             IDiskProvider diskProvider,
                             Logger logger)
 {
     _metadataFileService = metadataFileService;
     _diskProvider = diskProvider;
     _logger = logger;
 }
开发者ID:drewfreyling,项目名称:NzbDrone,代码行数:8,代码来源:CleanMetadataFileService.cs


示例9: UpdateLogFileModule

 public UpdateLogFileModule(IAppFolderInfo appFolderInfo,
                            IDiskProvider diskProvider,
                            IConfigFileProvider configFileProvider)
     : base(diskProvider, configFileProvider, "/update")
 {
     _appFolderInfo = appFolderInfo;
     _diskProvider = diskProvider;
 }
开发者ID:keep3r,项目名称:Sonarr,代码行数:8,代码来源:UpdateLogFileModule.cs


示例10: MediaFileAttributeService

 public MediaFileAttributeService(IConfigService configService,
                                  IDiskProvider diskProvider,
                                  Logger logger)
 {
     _configService = configService;
     _diskProvider = diskProvider;
     _logger = logger;
 }
开发者ID:mike-tesch,项目名称:Sonarr,代码行数:8,代码来源:MediaFileAttributeService.cs


示例11: DeleteBadMediaCovers

 public DeleteBadMediaCovers(ISeriesService seriesService, IMetadataFileService metadataFileService, IDiskProvider diskProvider, IConfigService configService, Logger logger)
 {
     _seriesService = seriesService;
     _metadataFileService = metadataFileService;
     _diskProvider = diskProvider;
     _configService = configService;
     _logger = logger;
 }
开发者ID:mike-tesch,项目名称:Sonarr,代码行数:8,代码来源:DeleteBadMediaCovers.cs


示例12: DiskTransferService

        public DiskTransferService(IDiskProvider diskProvider, Logger logger)
        {
            _diskProvider = diskProvider;
            _logger = logger;

            // TODO: Atm we haven't seen partial transfers on windows so we disable verified transfer.
            // (If enabled in the future, be sure to check specifically for ReFS, which doesn't support hardlinks.)
            VerificationMode = OsInfo.IsWindows ? DiskTransferVerificationMode.VerifyOnly : DiskTransferVerificationMode.Transactional;
        }
开发者ID:harsla,项目名称:Sonarr,代码行数:9,代码来源:DiskTransferService.cs


示例13: RootFolderService

 public RootFolderService(IBasicRepository<RootFolder> rootFolderRepository,
                          IDiskProvider diskProvider,
                          ISeriesRepository seriesRepository,
                          IConfigService configService)
 {
     _rootFolderRepository = rootFolderRepository;
     _diskProvider = diskProvider;
     _seriesRepository = seriesRepository;
     _configService = configService;
 }
开发者ID:peterlandry,项目名称:NzbDrone,代码行数:10,代码来源:RootFolderService.cs


示例14: Vuze

 public Vuze(ITransmissionProxy proxy,
             ITorrentFileInfoReader torrentFileInfoReader,
             IHttpClient httpClient,
             IConfigService configService,
             IDiskProvider diskProvider,
             IRemotePathMappingService remotePathMappingService,
             Logger logger)
     : base(proxy, torrentFileInfoReader, httpClient, configService, diskProvider, remotePathMappingService, logger)
 {
 }
开发者ID:mike-tesch,项目名称:Sonarr,代码行数:10,代码来源:Vuze.cs


示例15: StaticResourceMapperBase

        protected StaticResourceMapperBase(IDiskProvider diskProvider, Logger logger)
        {
            _diskProvider = diskProvider;
            _logger = logger;

            if (!RuntimeInfoBase.IsProduction)
            {
                _caseSensitive = StringComparison.OrdinalIgnoreCase;
            }
        }
开发者ID:Djohnnie,项目名称:Sonarr,代码行数:10,代码来源:StaticResourceMapperBase.cs


示例16: UpdateCheck

 public UpdateCheck(IDiskProvider diskProvider,
                    IAppFolderInfo appFolderInfo,
                    ICheckUpdateService checkUpdateService,
                    IConfigFileProvider configFileProvider)
 {
     _diskProvider = diskProvider;
     _appFolderInfo = appFolderInfo;
     _checkUpdateService = checkUpdateService;
     _configFileProvider = configFileProvider;
 }
开发者ID:pra85,项目名称:Sonarr,代码行数:10,代码来源:UpdateCheck.cs


示例17: StaticResourceMapperBase

        protected StaticResourceMapperBase(IDiskProvider diskProvider, Logger logger)
        {
            _diskProvider = diskProvider;
            _logger = logger;

            if (!RuntimeInfo.IsProduction)
            {
                _caseSensitive = true;
            }
        }
开发者ID:peterlandry,项目名称:NzbDrone,代码行数:10,代码来源:StaticResourceMapperBase.cs


示例18: IndexHtmlMapper

 public IndexHtmlMapper(IAppFolderInfo appFolderInfo,
                        IDiskProvider diskProvider,
                        IConfigFileProvider configFileProvider,
                        Logger logger)
     : base(diskProvider, logger)
 {
     _diskProvider = diskProvider;
     _configFileProvider = configFileProvider;
     _indexPath = Path.Combine(appFolderInfo.StartUpFolder, "UI", "index.html");
 }
开发者ID:BubbaFatAss,项目名称:NzbDrone,代码行数:10,代码来源:IndexHtmlMapper.cs


示例19: BackupAppData

 public BackupAppData(IAppFolderInfo appFolderInfo,
                      IDiskProvider diskProvider,
                      IDiskTransferService diskTransferService,
                      Logger logger)
 {
     _appFolderInfo = appFolderInfo;
     _diskProvider = diskProvider;
     _diskTransferService = diskTransferService;
     _logger = logger;
 }
开发者ID:Djohnnie,项目名称:Sonarr,代码行数:10,代码来源:BackupAppData.cs


示例20: InstallUpdateService

 public InstallUpdateService(IDiskProvider diskProvider, IDetectApplicationType detectApplicationType, ITerminateNzbDrone terminateNzbDrone,
     IAppFolderInfo appFolderInfo, IBackupAndRestore backupAndRestore, IStartNzbDrone startNzbDrone, Logger logger)
 {
     _diskProvider = diskProvider;
     _detectApplicationType = detectApplicationType;
     _terminateNzbDrone = terminateNzbDrone;
     _appFolderInfo = appFolderInfo;
     _backupAndRestore = backupAndRestore;
     _startNzbDrone = startNzbDrone;
     _logger = logger;
 }
开发者ID:peterlandry,项目名称:NzbDrone,代码行数:11,代码来源:InstallUpdateService.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# IDispatcher类代码示例发布时间:2022-05-24
下一篇:
C# IDiscountService类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap