我有一个基本的服务主机:
m_host = new ServiceHost(m_service, m_baseAddress);
ServiceMetadataBehavior behavior = new ServiceMetadataBehavior();
behavior.HttpGetEnabled = true;
behavior.MetadataExporter.PolicyVersion = PolicyVersion.Policy15;
m_host.Description.Behaviors.Add(behavior);
m_host.AddServiceEndpoint(
typeof(IManagerService),
new BasicHttpBinding(), m_soapAddress);
m_host.Open();
我的问题是我怎么知道要使用哪个 PolicyVersion?MSDN 不是很有帮助,似乎认为我应该已经知道我想要 1.2 还是 1.5...