Ensuring WCF Routing Flexibility: Listing 1.

Interfaces for CustomerService and EnhancedService

namespace CustomerService
{
  [ServiceContract(Namespace="http://www.phvis.com/customermanagement")]
  public interface ICustomerService
  {
    [OperationContract]
    CustomerInfrastructure.Customer GetCustomerById(
      string CustID);
  }
}

namespace EnhancedService
{
  [ServiceContract(Namespace="http://www.phvis.com/customermanagement")]
  public interface ICustomerService
  {
    [OperationContract(name="GetCustomerById")]
    CustomerInfrastructure.Customer AuditableGetCustomerById(
      string CustID, 
      string AuditCode);        
  }
}

About the Author

Peter Vogel is a system architect and principal in PH&V Information Services. PH&V provides full-stack consulting from UX design through object modeling to database design. Peter tweets about his VSM columns with the hashtag #vogelarticles. His blog posts on user experience design can be found at http://blog.learningtree.com/tag/ui/.

comments powered by Disqus

Featured

  • Logistic Regression with Batch SGD Training and Weight Decay Using C#

    Dr. James McCaffrey from Microsoft Research presents a complete end-to-end program that explains how to perform binary classification (predicting a variable with two possible discrete values) using logistic regression, where the prediction model is trained using batch stochastic gradient descent with weight decay.

  • Dev Asks, and 7 Years Later Python in VS Code Delivers Django Unit Test Support

    "We are excited to announce support for one of our most requested features: you can now discover and run Django unit tests through the Test Explorer!"

  • OData Finally Ditches Old .NET Framework

    "The most disruptive change we are making in this release is dropping support for .NET Framework."

  • .NET MAUI, ASP.NET Core Polished in First Release Candidate for .NET 9

    Microsoft shipped the first release candidate for .NET 9, which is nearing feature completeness and production readiness in advance of its November debut.

Subscribe on YouTube