7 instantiations of UriTemplate
System.ServiceModel.Web (7)
System\ServiceModel\Description\WebHttpBehavior.cs (1)
170
this.HelpUri = new
UriTemplate
(HelpPage.OperationListHelpPageUriTemplate).BindByPosition(endpoint.ListenUri);
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (1)
422
UriTemplate template = new
UriTemplate
(uriTemplate);
System\ServiceModel\Dispatcher\HelpPage.cs (3)
92
new KeyValuePair<UriTemplate, object>(new
UriTemplate
(OperationListHelpPageUriTemplate), HelpMethodName),
93
new KeyValuePair<UriTemplate, object>(new
UriTemplate
(OperationHelpPageUriTemplate), HelpOperationMethodName)
258
UriTemplate template = new
UriTemplate
(uriTemplate);
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (1)
146
uriTemplate = new
UriTemplate
(utString);
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (1)
87
UriTemplate ut = new
UriTemplate
(path);
106 references to UriTemplate
System.ServiceModel (78)
System\UriTemplate.cs (17)
233
else if (string.Compare(kvp.Value,
UriTemplate
.NullableDefault, StringComparison.OrdinalIgnoreCase) == 0)
421
public bool IsEquivalentTo(
UriTemplate
other)
578
internal bool IsPathPartiallyEquivalentAt(
UriTemplate
other, int segmentsCount)
597
internal bool IsQueryEquivalent(
UriTemplate
other)
835
bool IsPathFullyEquivalent(
UriTemplate
other)
1013
public UriTemplateDefaults(
UriTemplate
template)
1136
readonly
UriTemplate
owner;
1146
public VariablesCollection(
UriTemplate
owner)
1217
(string.Compare(value,
UriTemplate
.NullableDefault, StringComparison.OrdinalIgnoreCase) == 0))
1235
if (varName.IndexOf(
UriTemplate
.WildcardPath, StringComparison.Ordinal) != -1)
1238
SR.GetString(SR.UTInvalidWildcardInVariableOrLiteral, this.owner.originalTemplate,
UriTemplate
.WildcardPath)));
1257
if (string.Compare(defaultValue,
UriTemplate
.NullableDefault, StringComparison.OrdinalIgnoreCase) == 0)
1274
if (varName.IndexOf(
UriTemplate
.WildcardPath, StringComparison.Ordinal) != -1)
1277
SR.GetString(SR.UTInvalidWildcardInVariableOrLiteral, this.owner.originalTemplate,
UriTemplate
.WildcardPath)));
1660
readonly
UriTemplate
owner;
1663
public WildcardInfo(
UriTemplate
owner)
1668
public WildcardInfo(
UriTemplate
owner, string segment)
System\UriTemplateCompoundPathSegment.cs (5)
31
public static new UriTemplateCompoundPathSegment CreateFromUriTemplate(string segment,
UriTemplate
template)
43
if (firstLiteral.IndexOf(
UriTemplate
.WildcardPath, StringComparison.Ordinal) != -1)
46
SR.GetString(SR.UTInvalidWildcardInVariableOrLiteral, template.originalTemplate,
UriTemplate
.WildcardPath)));
85
if (literal.IndexOf(
UriTemplate
.WildcardPath, StringComparison.Ordinal) != -1)
88
SR.GetString(SR.UTInvalidWildcardInVariableOrLiteral, template.originalTemplate,
UriTemplate
.WildcardPath)));
System\UriTemplateEquivalenceComparer.cs (4)
14
public class UriTemplateEquivalenceComparer : IEqualityComparer<
UriTemplate
>
30
public bool Equals(
UriTemplate
x,
UriTemplate
y)
38
public int GetHashCode(
UriTemplate
obj)
System\UriTemplateHelpers.cs (14)
25
public static bool CanMatchQueryInterestingly(
UriTemplate
ut, NameValueCollection query, bool mustBeEspeciallyInteresting)
76
public static bool CanMatchQueryTrivially(
UriTemplate
ut)
81
public static void DisambiguateSamePath(
UriTemplate
[] array, int a, int b, bool allowDuplicateEquivalentUriTemplates)
87
Array.Sort<
UriTemplate
>(array, a, b - a, queryComparer);
139
public static bool HasQueryLiteralRequirements(
UriTemplate
ut)
215
return (string.Compare(segment,
UriTemplate
.WildcardPath, StringComparison.Ordinal) == 0);
221
return ((segment.IndexOf(
UriTemplate
.WildcardPath, StringComparison.Ordinal) == 1) &&
223
(segment.Length >
UriTemplate
.WildcardPath.Length + 2));
247
static bool AllTemplatesAreEquivalent(IList<
UriTemplate
> array, int a, int b)
259
static void EnsureQueriesAreDistinct(
UriTemplate
[] array, int a, int b, bool allowDuplicateEquivalentUriTemplates)
330
static string[] GetQueryLiterals(
UriTemplate
up, Dictionary<string, byte> queryVarNames)
364
class UriTemplateQueryComparer : IComparer<
UriTemplate
>
366
public int Compare(
UriTemplate
x,
UriTemplate
y)
System\UriTemplateLiteralPathSegment.cs (3)
34
public static new UriTemplateLiteralPathSegment CreateFromUriTemplate(string segment,
UriTemplate
template)
42
if (segment.IndexOf(
UriTemplate
.WildcardPath, StringComparison.Ordinal) != -1)
45
SR.GetString(SR.UTInvalidWildcardInVariableOrLiteral, template.originalTemplate,
UriTemplate
.WildcardPath)));
System\UriTemplateMatch.cs (3)
23
UriTemplate
template;
39
this.baseUri =
UriTemplate
.RewriteUri(this.originalBaseUri, this.requestProp.Headers[HttpRequestHeader.Host]);
105
public
UriTemplate
Template // which one got matched
System\UriTemplatePathPartiallyEquivalentSet.cs (3)
17
List<KeyValuePair<
UriTemplate
, object>> kvps;
23
this.kvps = new List<KeyValuePair<
UriTemplate
, object>>();
25
public List<KeyValuePair<
UriTemplate
, object>> Items
System\UriTemplatePathSegment.cs (1)
49
public static UriTemplatePathSegment CreateFromUriTemplate(string segment,
UriTemplate
template)
System\UriTemplateQueryValue.cs (1)
40
public static UriTemplateQueryValue CreateFromUriTemplate(string value,
UriTemplate
template)
System\UriTemplateTable.cs (12)
35
public UriTemplateTable(IEnumerable<KeyValuePair<
UriTemplate
, object>> keyValuePairs)
49
public UriTemplateTable(Uri baseAddress, IEnumerable<KeyValuePair<
UriTemplate
, object>> keyValuePairs)
54
internal UriTemplateTable(Uri baseAddress, IEnumerable<KeyValuePair<
UriTemplate
, object>> keyValuePairs, bool addTrailingSlashToBaseAddress)
131
public IList<KeyValuePair<
UriTemplate
, object>> KeyValuePairs
377
foreach (KeyValuePair<
UriTemplate
, object> kvp in this.templates)
379
UriTemplate
ut = kvp.Key;
565
class UriTemplatesCollection : FreezableCollection<KeyValuePair<
UriTemplate
, object>>
572
public UriTemplatesCollection(IEnumerable<KeyValuePair<
UriTemplate
, object>> keyValuePairs)
575
foreach (KeyValuePair<
UriTemplate
, object> kvp in keyValuePairs)
582
protected override void InsertItem(int index, KeyValuePair<
UriTemplate
, object> item)
587
protected override void SetItem(int index, KeyValuePair<
UriTemplate
, object> item)
593
static void ThrowIfInvalid(
UriTemplate
template, string argName)
System\UriTemplateTableMatchCandidate.cs (3)
11
readonly
UriTemplate
template;
13
public UriTemplateTableMatchCandidate(
UriTemplate
template, int segmentsCount, object data)
34
public
UriTemplate
Template
System\UriTemplateTrieNode.cs (12)
37
public static UriTemplateTrieNode Make(IEnumerable<KeyValuePair<
UriTemplate
, object>> keyValuePairs,
43
foreach (KeyValuePair<
UriTemplate
, object> kvp in keyValuePairs)
57
static void Add(UriTemplateTrieNode root, KeyValuePair<
UriTemplate
, object> kvp)
62
UriTemplate
ut = kvp.Key;
413
UriTemplate
firstTemplate = FindAnyUriTemplate(locations[i][0].node);
414
UriTemplate
secondTemplate = FindAnyUriTemplate(locations[i][1].node);
461
UriTemplate
[] a = new
UriTemplate
[pes.Items.Count];
463
foreach (KeyValuePair<
UriTemplate
, object> kvp in pes.Items)
479
static
UriTemplate
FindAnyUriTemplate(UriTemplateTrieNode node)
541
void AddFinalCompoundSegment(UriTemplateCompoundPathSegment cps, KeyValuePair<
UriTemplate
, object> kvp)
556
void AddFinalLiteralSegment(UriTemplateLiteralPathSegment lps, KeyValuePair<
UriTemplate
, object> kvp)
System.ServiceModel.Web (28)
AssemblyInfo.cs (1)
10
[assembly: TypeForwardedTo(typeof(System.
UriTemplate
))]
System\ServiceModel\Description\WebScriptClientGenerator.cs (1)
80
string proxyContent = this.GetProxyContent(
UriTemplate
.RewriteUri(this.endpoint.Address.Uri, requestMessageProperty.Headers[HttpRequestHeader.Host]));
System\ServiceModel\Description\WebScriptEnablingBehavior.cs (2)
175
SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(
UriTemplate
).Name, this.GetType().ToString())));
181
SR2.GetString(SR2.WebScriptNotSupportedForXmlSerializerFormat, typeof(
UriTemplate
).Name, this.GetType().ToString())));
System\ServiceModel\Dispatcher\HelpHtmlBuilder.cs (1)
422
UriTemplate
template = new UriTemplate(uriTemplate);
System\ServiceModel\Dispatcher\HelpPage.cs (8)
51
Uri baseUri =
UriTemplate
.RewriteUri(OperationContext.Current.Channel.LocalAddress.Uri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]);
66
Uri requestUri =
UriTemplate
.RewriteUri(WebOperationContext.Current.IncomingRequest.UriTemplateMatch.RequestUri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]);
73
Uri baseUri =
UriTemplate
.RewriteUri(OperationContext.Current.Channel.LocalAddress.Uri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]);
88
public static IEnumerable<KeyValuePair<
UriTemplate
, object>> GetOperationTemplatePairs()
90
return new KeyValuePair<
UriTemplate
, object>[]
92
new KeyValuePair<
UriTemplate
, object>(new UriTemplate(OperationListHelpPageUriTemplate), HelpMethodName),
93
new KeyValuePair<
UriTemplate
, object>(new UriTemplate(OperationHelpPageUriTemplate), HelpOperationMethodName)
258
UriTemplate
template = new UriTemplate(uriTemplate);
System\ServiceModel\Dispatcher\HttpUnhandledOperationInvoker.cs (1)
76
Uri helpUri = this.HelpUri != null ?
UriTemplate
.RewriteUri(this.HelpUri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]) : null;
System\ServiceModel\Dispatcher\UriTemplateClientFormatter.cs (2)
31
UriTemplate
uriTemplate;
138
out
UriTemplate
uriTemplate,
System\ServiceModel\Dispatcher\UriTemplateDispatchFormatter.cs (1)
31
UriTemplate
uriTemplate;
System\ServiceModel\Dispatcher\WebErrorHandler.cs (1)
138
helpUri = this.webHttpBehavior.HelpUri != null ?
UriTemplate
.RewriteUri(this.webHttpBehavior.HelpUri, WebOperationContext.Current.IncomingRequest.Headers[HttpRequestHeader.Host]) : null;
System\ServiceModel\Dispatcher\WebHttpDispatchOperationSelector.cs (9)
35
Dictionary<string,
UriTemplate
> templates;
53
this.templates = new Dictionary<string,
UriTemplate
>();
87
UriTemplate
ut = new UriTemplate(path);
105
methodSpecificTable.KeyValuePairs.Add(new KeyValuePair<
UriTemplate
, object>(ut, od.Name));
133
public virtual
UriTemplate
GetUriTemplate(string operationName)
139
UriTemplate
result;
352
originalPlusSlash =
UriTemplate
.RewriteUri(ub.Uri, hostAndPort);
382
UriTemplate
uriTemplate;
383
public WCFKey(
UriTemplate
uriTemplate, string method)
System\ServiceModel\Web\WebOperationContext.cs (1)
339
public
UriTemplate
GetUriTemplate(string operationName)