C# 클래스 ServiceStack.UrlExtensions

Donated by Ivan Korneliuk from his post: http://korneliuk.blogspot.com/2012/08/servicestack-reusing-dtos.html Modified to only allow using routes matching the supplied HTTP Verb
파일 보기 프로젝트 열기: ServiceStack/ServiceStack

공개 메소드들

메소드 설명
AsHttps ( this absoluteUrl ) : string
ExpandGenericTypeName ( Type type ) : string
ExpandTypeName ( this type ) : string
GetMetadataPropertyType ( this type ) : string
GetOperationName ( this type ) : string
GetQueryPropertyTypes ( this requestType ) : Type>.Dictionary
HasRequestBody ( this httpMethod ) : bool
ToDeleteUrl ( this requestDto ) : string
ToGetUrl ( this requestDto ) : string
ToOneWayUrl ( this requestDto, string format = "json" ) : string
ToOneWayUrlOnly ( this requestDto, string format = "json" ) : string
ToPostUrl ( this requestDto ) : string
ToPutUrl ( this requestDto ) : string
ToRelativeUri ( this requestDto, string httpMethod, string formatFallbackToPredefinedRoute = null ) : string
ToReplyUrl ( this requestDto, string format = "json" ) : string
ToReplyUrlOnly ( this requestDto, string format = "json" ) : string
ToUrl ( this requestDto, string httpMethod, string formatFallbackToPredefinedRoute = null ) : string

Generate a url from a Request DTO. Pretty URL generation require Routes to be defined using `[Route]` on the Request DTO

비공개 메소드들

메소드 설명
FindMostSpecificRoute ( IEnumerable routes ) : RouteResolutionResult
GetRoutesForType ( Type requestType ) : List

메소드 상세

AsHttps() 공개 정적인 메소드

public static AsHttps ( this absoluteUrl ) : string
absoluteUrl this
리턴 string

ExpandGenericTypeName() 공개 정적인 메소드

public static ExpandGenericTypeName ( Type type ) : string
type System.Type
리턴 string

ExpandTypeName() 공개 정적인 메소드

public static ExpandTypeName ( this type ) : string
type this
리턴 string

GetMetadataPropertyType() 공개 정적인 메소드

public static GetMetadataPropertyType ( this type ) : string
type this
리턴 string

GetOperationName() 공개 정적인 메소드

public static GetOperationName ( this type ) : string
type this
리턴 string

GetQueryPropertyTypes() 공개 정적인 메소드

public static GetQueryPropertyTypes ( this requestType ) : Type>.Dictionary
requestType this
리턴 Type>.Dictionary

HasRequestBody() 공개 정적인 메소드

public static HasRequestBody ( this httpMethod ) : bool
httpMethod this
리턴 bool

ToDeleteUrl() 공개 정적인 메소드

public static ToDeleteUrl ( this requestDto ) : string
requestDto this
리턴 string

ToGetUrl() 공개 정적인 메소드

public static ToGetUrl ( this requestDto ) : string
requestDto this
리턴 string

ToOneWayUrl() 공개 정적인 메소드

public static ToOneWayUrl ( this requestDto, string format = "json" ) : string
requestDto this
format string
리턴 string

ToOneWayUrlOnly() 공개 정적인 메소드

public static ToOneWayUrlOnly ( this requestDto, string format = "json" ) : string
requestDto this
format string
리턴 string

ToPostUrl() 공개 정적인 메소드

public static ToPostUrl ( this requestDto ) : string
requestDto this
리턴 string

ToPutUrl() 공개 정적인 메소드

public static ToPutUrl ( this requestDto ) : string
requestDto this
리턴 string

ToRelativeUri() 공개 정적인 메소드

public static ToRelativeUri ( this requestDto, string httpMethod, string formatFallbackToPredefinedRoute = null ) : string
requestDto this
httpMethod string
formatFallbackToPredefinedRoute string
리턴 string

ToReplyUrl() 공개 정적인 메소드

public static ToReplyUrl ( this requestDto, string format = "json" ) : string
requestDto this
format string
리턴 string

ToReplyUrlOnly() 공개 정적인 메소드

public static ToReplyUrlOnly ( this requestDto, string format = "json" ) : string
requestDto this
format string
리턴 string

ToUrl() 공개 정적인 메소드

Generate a url from a Request DTO. Pretty URL generation require Routes to be defined using `[Route]` on the Request DTO
public static ToUrl ( this requestDto, string httpMethod, string formatFallbackToPredefinedRoute = null ) : string
requestDto this
httpMethod string
formatFallbackToPredefinedRoute string
리턴 string