| | | 1 | | // Licensed to the .NET Foundation under one or more agreements. |
| | | 2 | | // The .NET Foundation licenses this file to you under the MIT license. |
| | | 3 | | |
| | | 4 | | using System.Collections.Generic; |
| | | 5 | | |
| | | 6 | | namespace CoreWCF |
| | | 7 | | { |
| | | 8 | | // This class was named UriTemplatePathEquivalentSet in the Orcas bits, where it used to |
| | | 9 | | // represent a set of uri templates, which are equivalent in thier path. The introduction |
| | | 10 | | // of terminal defaults, caused it to be no longer true; now it is representing a set |
| | | 11 | | // of templates, which are equivalent in their path till a certian point, which is stored |
| | | 12 | | // in the segmentsCount field. To highlight that fact the class was renamed as |
| | | 13 | | // UriTemplatePathPartiallyEquivalentSet. |
| | | 14 | | internal class UriTemplatePathPartiallyEquivalentSet |
| | | 15 | | { |
| | 380 | 16 | | public UriTemplatePathPartiallyEquivalentSet(int segmentsCount) |
| | | 17 | | { |
| | 380 | 18 | | SegmentsCount = segmentsCount; |
| | 380 | 19 | | Items = new List<KeyValuePair<UriTemplate, object>>(); |
| | 380 | 20 | | } |
| | | 21 | | |
| | 1042 | 22 | | public List<KeyValuePair<UriTemplate, object>> Items { get; } |
| | | 23 | | |
| | 121 | 24 | | public int SegmentsCount { get; } |
| | | 25 | | } |
| | | 26 | | } |