Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This topic describes how you can rename a Windows Communication Foundation (WCF) service.
Perform the following steps to rename a service in a Windows Communication Foundation (WCF) template,
Change the name of the class that implements the service.
In the configuration file of the service, change the name of the service to the new name you have chosen, as indicated in the following example. The configuration file can be either app.config or web.config file depending on your hosting model.
<system.servicemodel>
<services>
<service name="WcfService.NewName">
</service>
</services>
</system.servicemodel>
<%@ ServiceHost Service="WcfService.NewName">
Perform the following steps to rename the service contract,
Change the name of the service contract.
In the configuration file of the service, change the name of the service contract to the new name you have chosen, as indicated in the following example. The configuration file can be either app.config or web.config file depending on your hosting model.
<system.servicemodel>
<services>
<service>
<endpoint contract="WcfService.NewContractName" />
</service>
</services>
</system.servicemodel>
Events
Mar 17, 9 PM - Mar 21, 10 AM
Join the meetup series to build scalable AI solutions based on real-world use cases with fellow developers and experts.
Register nowTraining
Module
Build your first microservice with .NET - Training
Microservice applications are composed of small, independently versioned, and scalable customer-focused services that communicate with each other by using standard protocols and well-defined interfaces. Each microservice typically encapsulates simple business logic, which you can scale out or in. You test, deploy, and manage the microservice independently. Smaller teams develop a microservice based on a customer scenario, and choose the technologies that they use. This module teaches you how to build your f