C# 클래스 Saule.Serialization.DefaultUrlPathBuilder

Used to build url paths.
상속: IUrlPathBuilder
파일 보기 프로젝트 열기: joukevandermaas/saule 1 사용 예제들

공개 메소드들

메소드 설명
BuildCanonicalPath ( ApiResource resource ) : string

Returns the UrlPath of the resource, ensuring it starts and ends with '/'

BuildCanonicalPath ( ApiResource resource, string id ) : string

Returns a path in the form `/resource.UrlPath/id/`.

BuildRelationshipPath ( ApiResource resource, string id, ResourceRelationship relationship ) : string

Returns a path in the form `/resource.UrlPath/id/relationships/relationship.UrlPath/`.

BuildRelationshipPath ( ApiResource resource, string id, ResourceRelationship relationship, string relatedResourceId ) : string

Returns a path in the form `/resource.UrlPath/id/relationship.UrlPath/`.

DefaultUrlPathBuilder ( ) : System

Initializes a new instance of the DefaultUrlPathBuilder class.

DefaultUrlPathBuilder ( string prefix ) : System

Initializes a new instance of the DefaultUrlPathBuilder class.

비공개 메소드들

메소드 설명
DefaultUrlPathBuilder ( string virtualPathRoot, string template ) : System

메소드 상세

BuildCanonicalPath() 공개 메소드

Returns the UrlPath of the resource, ensuring it starts and ends with '/'
public BuildCanonicalPath ( ApiResource resource ) : string
resource ApiResource The resource this path refers to.
리턴 string

BuildCanonicalPath() 공개 메소드

Returns a path in the form `/resource.UrlPath/id/`.
public BuildCanonicalPath ( ApiResource resource, string id ) : string
resource ApiResource The resource this path refers to.
id string The unique id of the resource.
리턴 string

BuildRelationshipPath() 공개 메소드

Returns a path in the form `/resource.UrlPath/id/relationships/relationship.UrlPath/`.
public BuildRelationshipPath ( ApiResource resource, string id, ResourceRelationship relationship ) : string
resource ApiResource The resource this path is related to.
id string The unique id of the resource.
relationship ResourceRelationship The relationship this path refers to.
리턴 string

BuildRelationshipPath() 공개 메소드

Returns a path in the form `/resource.UrlPath/id/relationship.UrlPath/`.
public BuildRelationshipPath ( ApiResource resource, string id, ResourceRelationship relationship, string relatedResourceId ) : string
resource ApiResource The resource this path is related to.
id string The unique id of the resource.
relationship ResourceRelationship The relationship this path refers to.
relatedResourceId string The id of the related resource.
리턴 string

DefaultUrlPathBuilder() 공개 메소드

Initializes a new instance of the DefaultUrlPathBuilder class.
public DefaultUrlPathBuilder ( ) : System
리턴 System

DefaultUrlPathBuilder() 공개 메소드

Initializes a new instance of the DefaultUrlPathBuilder class.
public DefaultUrlPathBuilder ( string prefix ) : System
prefix string A prefix for all urls generated by this instance of the DefaultUrlPathBuilder class.
리턴 System