C# Класс ServiceStack.Host.RestPath

Наследование: IRestPath
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
Verbs string[]

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ExplodeComponents ( string &withPathInfoParts ) : bool
GetPotentialMatchesWithPrefix ( string hashPrefix, string pathPartsForMatching ) : IEnumerable
RegisterCaseInsenstivePropertyNameMappings ( ) : void

Описание методов

CreateRequest() публичный Метод

public CreateRequest ( string pathInfo ) : object
pathInfo string
Результат object

CreateRequest() публичный Метод

public CreateRequest ( string pathInfo, string>.Dictionary queryStringAndFormData, object fromInstance ) : object
pathInfo string
queryStringAndFormData string>.Dictionary
fromInstance object
Результат object

GetFirstMatchHashKeys() публичный статический Метод

public static GetFirstMatchHashKeys ( string pathPartsForMatching ) : IEnumerable
pathPartsForMatching string
Результат IEnumerable

GetFirstMatchWildCardHashKeys() публичный статический Метод

public static GetFirstMatchWildCardHashKeys ( string pathPartsForMatching ) : IEnumerable
pathPartsForMatching string
Результат IEnumerable

GetHashCode() публичный Метод

public GetHashCode ( ) : int
Результат int

GetPathPartsForMatching() публичный статический Метод

public static GetPathPartsForMatching ( string pathInfo ) : string[]
pathInfo string
Результат string[]

IsMatch() публичный Метод

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
Результат bool

IsMatch() публичный Метод

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
Результат bool

MatchScore() публичный Метод

public MatchScore ( string httpMethod, string withPathInfoParts ) : int
httpMethod string
withPathInfoParts string
Результат int

RestPath() публичный Метод

public RestPath ( Type requestType, string path ) : System
requestType System.Type
path string
Результат System

RestPath() публичный Метод

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
Результат System

Описание свойств

Verbs публичное свойство

public string[] Verbs
Результат string[]