C# 클래스 ZeroInstall.Store.Feeds.DiskFeedCache

Provides access to a disk-based cache of Feeds that were downloaded via HTTP(S).

Local feed files are simply passed through this cache.

Once a feed has been added to this cache it is considered trusted (signatures are not checked again).

상속: IFeedCache
파일 보기 프로젝트 열기: 0install/0install-win 1 사용 예제들

Private Properties

프로퍼티 타입 설명
IFeedCache void
WriteToFile void

공개 메소드들

메소드 설명
Add ( FeedUri feedUri, byte data ) : void
Contains ( FeedUri feedUri ) : bool
DiskFeedCache ( [ path, [ openPgp ) : System

Creates a new disk-based cache.

GetFeed ( FeedUri feedUri ) : Feed
GetPath ( FeedUri feedUri ) : string
GetSignatures ( FeedUri feedUri ) : IEnumerable
ListAll ( ) : IEnumerable
Remove ( FeedUri feedUri ) : void
ToString ( ) : string

Returns the store in the form "DiskFeedCache: DirectoryPath". Not safe for parsing!

비공개 메소드들

메소드 설명
IFeedCache ( ) : void
WriteToFile ( byte data, string path ) : void

Writes the entire content of a byte array to file atomically.

메소드 상세

Add() 공개 메소드

public Add ( FeedUri feedUri, byte data ) : void
feedUri FeedUri
data byte
리턴 void

Contains() 공개 메소드

public Contains ( FeedUri feedUri ) : bool
feedUri FeedUri
리턴 bool

DiskFeedCache() 공개 메소드

Creates a new disk-based cache.
public DiskFeedCache ( [ path, [ openPgp ) : System
path [ A fully qualified directory path.
openPgp [ Provides access to an encryption/signature system compatible with the OpenPGP standard.
리턴 System

GetFeed() 공개 메소드

public GetFeed ( FeedUri feedUri ) : Feed
feedUri FeedUri
리턴 Feed

GetPath() 공개 메소드

public GetPath ( FeedUri feedUri ) : string
feedUri FeedUri
리턴 string

GetSignatures() 공개 메소드

public GetSignatures ( FeedUri feedUri ) : IEnumerable
feedUri FeedUri
리턴 IEnumerable

ListAll() 공개 메소드

public ListAll ( ) : IEnumerable
리턴 IEnumerable

Remove() 공개 메소드

public Remove ( FeedUri feedUri ) : void
feedUri FeedUri
리턴 void

ToString() 공개 메소드

Returns the store in the form "DiskFeedCache: DirectoryPath". Not safe for parsing!
public ToString ( ) : string
리턴 string