C# Class ServiceStack.Host.RestPath

Inheritance: IRestPath
Afficher le fichier Open project: nustack/ServiceStack Class Usage Examples

Méthodes publiques

Свойство Type Description
Verbs string[]

Méthodes publiques

Méthode Description
CreateRequest ( string pathInfo ) : object
CreateRequest ( string pathInfo, string>.Dictionary queryStringAndFormData, object fromInstance ) : object
GetFirstMatchHashKeys ( string pathPartsForMatching ) : IEnumerable
GetFirstMatchWildCardHashKeys ( string pathPartsForMatching ) : IEnumerable
GetHashCode ( ) : int
GetPathPartsForMatching ( string pathInfo ) : string[]
IsMatch ( string httpMethod, string withPathInfoParts ) : bool

For performance withPathInfoParts should already be a lower case string to minimize redundant matching operations.

IsMatch ( string httpMethod, string withPathInfoParts, int &wildcardMatchCount ) : bool

For performance withPathInfoParts should already be a lower case string to minimize redundant matching operations.

MatchScore ( string httpMethod, string withPathInfoParts ) : int
RestPath ( Type requestType, string path ) : System
RestPath ( Type requestType, string path, string verbs, string summary = null, string notes = null ) : System

Private Methods

Méthode Description
ExplodeComponents ( string &withPathInfoParts ) : bool
GetPotentialMatchesWithPrefix ( string hashPrefix, string pathPartsForMatching ) : IEnumerable
RegisterCaseInsenstivePropertyNameMappings ( ) : void

Method Details

CreateRequest() public méthode

public CreateRequest ( string pathInfo ) : object
pathInfo string
Résultat object

CreateRequest() public méthode

public CreateRequest ( string pathInfo, string>.Dictionary queryStringAndFormData, object fromInstance ) : object
pathInfo string
queryStringAndFormData string>.Dictionary
fromInstance object
Résultat object

GetFirstMatchHashKeys() public static méthode

public static GetFirstMatchHashKeys ( string pathPartsForMatching ) : IEnumerable
pathPartsForMatching string
Résultat IEnumerable

GetFirstMatchWildCardHashKeys() public static méthode

public static GetFirstMatchWildCardHashKeys ( string pathPartsForMatching ) : IEnumerable
pathPartsForMatching string
Résultat IEnumerable

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

GetPathPartsForMatching() public static méthode

public static GetPathPartsForMatching ( string pathInfo ) : string[]
pathInfo string
Résultat string[]

IsMatch() public méthode

For performance withPathInfoParts should already be a lower case string to minimize redundant matching operations.
public IsMatch ( string httpMethod, string withPathInfoParts ) : bool
httpMethod string
withPathInfoParts string
Résultat bool

IsMatch() public méthode

For performance withPathInfoParts should already be a lower case string to minimize redundant matching operations.
public IsMatch ( string httpMethod, string withPathInfoParts, int &wildcardMatchCount ) : bool
httpMethod string
withPathInfoParts string
wildcardMatchCount int
Résultat bool

MatchScore() public méthode

public MatchScore ( string httpMethod, string withPathInfoParts ) : int
httpMethod string
withPathInfoParts string
Résultat int

RestPath() public méthode

public RestPath ( Type requestType, string path ) : System
requestType System.Type
path string
Résultat System

RestPath() public méthode

public RestPath ( Type requestType, string path, string verbs, string summary = null, string notes = null ) : System
requestType System.Type
path string
verbs string
summary string
notes string
Résultat System

Property Details

Verbs public_oe property

public string[] Verbs
Résultat string[]