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


C# IDiskProvider类代码示例

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


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


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