C# Class ServiceStack.ServiceHost.RestPath

Inheritance: IRestPath
Afficher le fichier Open project: firstsee/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.

RestPath ( Type requestType, ServiceStack.ServiceHost.RestServiceAttribute attr ) : 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

RestPath() public méthode

public RestPath ( Type requestType, ServiceStack.ServiceHost.RestServiceAttribute attr ) : System
requestType System.Type
attr ServiceStack.ServiceHost.RestServiceAttribute
Résultat System

Property Details

Verbs public_oe property

public string[] Verbs
Résultat string[]