C# Класс ServiceStack.ServiceHost.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.

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

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

public RestPath ( Type requestType, ServiceStack.ServiceHost.RestServiceAttribute attr ) : System
requestType System.Type
attr ServiceStack.ServiceHost.RestServiceAttribute
Результат System

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

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

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