3 instantiations of UriTemplateLiteralPathSegment
System.ServiceModel (3)
System\UriTemplateLiteralPathSegment.cs (3)
40
return new
UriTemplateLiteralPathSegment
("/");
62
return new
UriTemplateLiteralPathSegment
(escapedIfNecessarySegment);
66
return new
UriTemplateLiteralPathSegment
(segment);
38 references to UriTemplateLiteralPathSegment
System.ServiceModel (38)
System\UriTemplate.cs (2)
778
UriTemplateLiteralPathSegment
lps =
UriTemplateLiteralPathSegment
.CreateFromWireData(segment);
System\UriTemplateCompoundPathSegment.cs (1)
174
public override bool IsMatch(
UriTemplateLiteralPathSegment
segment, bool ignoreTrailingSlash)
System\UriTemplateLiteralPathSegment.cs (9)
14
class UriTemplateLiteralPathSegment : UriTemplatePathSegment, IComparable<
UriTemplateLiteralPathSegment
>
34
public static new
UriTemplateLiteralPathSegment
CreateFromUriTemplate(string segment, UriTemplate template)
64
public static
UriTemplateLiteralPathSegment
CreateFromWireData(string segment)
86
public int CompareTo(
UriTemplateLiteralPathSegment
other)
93
UriTemplateLiteralPathSegment
lps = obj as
UriTemplateLiteralPathSegment
;
121
UriTemplateLiteralPathSegment
otherAsLiteral = other as
UriTemplateLiteralPathSegment
;
125
public override bool IsMatch(
UriTemplateLiteralPathSegment
segment, bool ignoreTrailingSlash)
System\UriTemplatePathSegment.cs (3)
55
return
UriTemplateLiteralPathSegment
.CreateFromUriTemplate(segment, template);
82
public bool IsMatch(
UriTemplateLiteralPathSegment
segment)
86
public abstract bool IsMatch(
UriTemplateLiteralPathSegment
segment, bool ignoreTrailingSlash);
System\UriTemplateTable.cs (4)
356
UriTemplateLiteralPathSegment
[] uSegments = new
UriTemplateLiteralPathSegment
[numRelativeSegments];
361
UriTemplateLiteralPathSegment
lps =
UriTemplateLiteralPathSegment
.CreateFromWireData(seg);
System\UriTemplateTrieNode.cs (18)
17
Dictionary<
UriTemplateLiteralPathSegment
, UriTemplatePathPartiallyEquivalentSet> finalLiteralSegment; // matches e.g. "segmentThatDoesntEndInSlash"
20
Dictionary<
UriTemplateLiteralPathSegment
, UriTemplateTrieLocation> nextLiteralSegment; // all are BeforeLiteral; matches e.g. "path/"
51
public bool Match(
UriTemplateLiteralPathSegment
[] wireData, ICollection<UriTemplateTableMatchCandidate> candidates)
79
current.AddFinalLiteralSegment(ps as
UriTemplateLiteralPathSegment
, kvp);
101
current = current.AddNextLiteralSegment(ps as
UriTemplateLiteralPathSegment
);
134
static bool CheckMultipleMatches(IList<IList<UriTemplateTrieLocation>> locationsSet,
UriTemplateLiteralPathSegment
[] wireData,
150
static bool GetMatch(UriTemplateTrieLocation location,
UriTemplateLiteralPathSegment
[] wireData,
188
static bool TryMatch(
UriTemplateLiteralPathSegment
[] wireUriSegments, UriTemplateTrieLocation currentLocation,
221
UriTemplateLiteralPathSegment
curWireSeg = wireUriSegments[currentLocation.node.depth];
371
foreach (KeyValuePair<
UriTemplateLiteralPathSegment
, UriTemplatePathPartiallyEquivalentSet> kvp in current.finalLiteralSegment)
395
foreach (KeyValuePair<
UriTemplateLiteralPathSegment
, UriTemplateTrieLocation> kvp in current.nextLiteralSegment)
532
static T GetAnyDictionaryValue<T>(IDictionary<
UriTemplateLiteralPathSegment
, T> dictionary)
556
void AddFinalLiteralSegment(
UriTemplateLiteralPathSegment
lps, KeyValuePair<UriTemplate, object> kvp)
567
this.finalLiteralSegment = new Dictionary<
UriTemplateLiteralPathSegment
, UriTemplatePathPartiallyEquivalentSet>();
591
UriTemplateTrieNode AddNextLiteralSegment(
UriTemplateLiteralPathSegment
lps)
602
this.nextLiteralSegment = new Dictionary<
UriTemplateLiteralPathSegment
, UriTemplateTrieLocation>();
733
public IList<IList<T>> Find(
UriTemplateLiteralPathSegment
wireData)
772
UriTemplateLiteralPathSegment
wireData, out IList<IList<T>> results)
System\UriTemplateVariablePathSegment.cs (1)
55
public override bool IsMatch(
UriTemplateLiteralPathSegment
segment, bool ignoreTrailingSlash)