C# Class Subtext.BlogML.Conversion.IdConversionStrategy

Afficher le fichier Open project: ayende/Subtext Class Usage Examples

Méthodes publiques

Свойство Type Description
Empty IdConversionStrategy

Méthodes publiques

Méthode Description
GetConvertedId ( string scope, string originalId ) : string

Converts the specified id into a new Id. If we've already converted this id, then returns the original conversion. This method is for creating outgoing ids.

Méthodes protégées

Méthode Description
Generate ( string scope, string originalId ) : string

Generates a new id for the specified scope. The originalId may be ignored if not needed as a "seed" value.

Method Details

Generate() protected abstract méthode

Generates a new id for the specified scope. The originalId may be ignored if not needed as a "seed" value.
protected abstract Generate ( string scope, string originalId ) : string
scope string The scope for the id. For example, for an auto-incrementing /// int id in a table, this might be the table name. This is how we can distinguish /// between two ids that might be the same.
originalId string This can be used as the seed for the generated id.
Résultat string

GetConvertedId() public méthode

Converts the specified id into a new Id. If we've already converted this id, then returns the original conversion. This method is for creating outgoing ids.
public GetConvertedId ( string scope, string originalId ) : string
scope string The scope for the id. For example, for an auto-incrementing /// int id in a table, this might be the table name. This is how we can distinguish /// between two ids that might be the same.
originalId string
Résultat string

Property Details

Empty public_oe static_oe property

public static IdConversionStrategy,Subtext.BlogML.Conversion Empty
Résultat IdConversionStrategy