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