/
PolicyVersion.cs
33 lines (27 loc) · 1.04 KB
/
PolicyVersion.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
namespace System.ServiceModel.Description
{
public sealed class PolicyVersion
{
private static PolicyVersion s_policyVersion12;
static PolicyVersion()
{
s_policyVersion12 = new PolicyVersion(MetadataStrings.WSPolicy.NamespaceUri);
Policy15 = new PolicyVersion(MetadataStrings.WSPolicy.NamespaceUri15);
}
private PolicyVersion(string policyNamespace)
{
Namespace = policyNamespace;
}
public static PolicyVersion Policy12 { get { return s_policyVersion12; } }
public static PolicyVersion Policy15 { get; private set; }
public static PolicyVersion Default { get { return s_policyVersion12; } }
public string Namespace { get; }
public override string ToString()
{
return Namespace;
}
}
}