C# Class 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).

Inheritance: IFeedCache
Exibir arquivo Open project: 0install/0install-win Class Usage Examples

Private Properties

Property Type Description
IFeedCache void
WriteToFile void

Public Methods

Method Description
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!

Private Methods

Method Description
IFeedCache ( ) : void
WriteToFile ( byte data, string path ) : void

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

Method Details

Add() public method

public Add ( FeedUri feedUri, byte data ) : void
feedUri FeedUri
data byte
return void

Contains() public method

public Contains ( FeedUri feedUri ) : bool
feedUri FeedUri
return bool

DiskFeedCache() public method

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.
return System

GetFeed() public method

public GetFeed ( FeedUri feedUri ) : Feed
feedUri FeedUri
return Feed

GetPath() public method

public GetPath ( FeedUri feedUri ) : string
feedUri FeedUri
return string

GetSignatures() public method

public GetSignatures ( FeedUri feedUri ) : IEnumerable
feedUri FeedUri
return IEnumerable

ListAll() public method

public ListAll ( ) : IEnumerable
return IEnumerable

Remove() public method

public Remove ( FeedUri feedUri ) : void
feedUri FeedUri
return void

ToString() public method

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