C# 클래스 ZeroInstall.Publish.FeedUtils

Helper methods for manipulating Feeds.
파일 보기 프로젝트 열기: 0install/0install-win 1 사용 예제들

공개 메소드들

메소드 설명
DeployStylesheet ( [ path, [ name ) : void

Writes an XSL stylesheet with its accompanying CSS file unless there is already an XSL in place.

SignFeed ( [ stream, [ secretKey, [ passphrase, [ openPgp ) : void

Adds a Base64 signature to a feed or catalog stream.

The file is not parsed before signing; invalid XML files are signed as well. The existing file must end with a line break. Old signatures are not removed.

비공개 메소드들

메소드 설명
GetKey ( [ path, [ openPgp ) : OpenPgpSecretKey

메소드 상세

DeployStylesheet() 공개 정적인 메소드

Writes an XSL stylesheet with its accompanying CSS file unless there is already an XSL in place.
Failed to write the sytelsheet files. Write access to the directory is not permitted.
public static DeployStylesheet ( [ path, [ name ) : void
path [ The directory to write the stylesheet files to.
name [ The name of the stylesheet to deploy. Must be "feed" or "catalog".
리턴 void

SignFeed() 공개 정적인 메소드

Adds a Base64 signature to a feed or catalog stream.
The file is not parsed before signing; invalid XML files are signed as well. The existing file must end with a line break. Old signatures are not removed.
The file could not be read or written. Read or write access to the file is not permitted. The specified could not be found on the system. was incorrect.
public static SignFeed ( [ stream, [ secretKey, [ passphrase, [ openPgp ) : void
stream [ The feed or catalog to sign.
secretKey [ The secret key to use for signing the file.
passphrase [ The passphrase to use to unlock the key.
openPgp [ The OpenPGP-compatible system used to create signatures.
리턴 void