dotnet/Documentation/compatibility/system_servicemodel_web_web...

2.5 KiB

System.ServiceModel.Web.WebServiceHost object no longer adds a default endpoint

Scope

Minor

Version Introduced

4.5

Source Analyzer Status

Planned

Change Description

The xref:System.ServiceModel.Web.WebServiceHost object no longer adds a default endpoint if an explicit endpoint has been added by application code.

  • Quirked
  • Build-time break

If users will expect to be able to connect to a default endpoint and other explicit endpoints have been added to the xref:System.ServiceModel.Web.WebServiceHost?displayProperty=name, default endpoints should also be added explicitly (using xref:System.ServiceModel.ServiceHostBase.AddDefaultEndpoints?displayProperty=name).

Affected APIs

  • M:System.ServiceModel.ServiceHost.AddServiceEndpoint(System.Type,System.ServiceModel.Channels.Binding,System.String)
  • M:System.ServiceModel.ServiceHost.AddServiceEndpoint(System.Type,System.ServiceModel.Channels.Binding,System.Uri)
  • M:System.ServiceModel.ServiceHost.AddServiceEndpoint(System.Type,System.ServiceModel.Channels.Binding,System.String,System.Uri)
  • M:System.ServiceModel.ServiceHost.AddServiceEndpoint(System.Type,System.ServiceModel.Channels.Binding,System.Uri,System.Uri)
  • M:System.ServiceModel.ServiceHost.AddServiceEndpoint(System.Type,System.ServiceModel.Channels.Binding,System.Uri,System.Uri)
  • M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.ServiceModel.Description.ServiceEndpoint)
  • M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.String,System.ServiceModel.Channels.Binding,System.String)
  • M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.String,System.ServiceModel.Channels.Binding,System.Uri)
  • M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.String,System.ServiceModel.Channels.Binding,System.String,System.Uri)
  • M:System.ServiceModel.ServiceHostBase.AddServiceEndpoint(System.String,System.ServiceModel.Channels.Binding,System.Uri,System.Uri)

Category

Windows Communication Foundation (WCF)