C# Class Subtext.BlogML.Conversion.IdConversionStrategy

Datei anzeigen Open project: ayende/Subtext Class Usage Examples

Public Properties

Property Type Description
Empty IdConversionStrategy

Public Methods

Method 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.

Protected Methods

Method 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 method

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

GetConvertedId() public method

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
return string

Property Details

Empty public_oe static_oe property

public static IdConversionStrategy,Subtext.BlogML.Conversion Empty
return IdConversionStrategy