WCF Best Practice for "Overloaded" methods

Posted by Nate Bross on Stack Overflow See other posts from Stack Overflow or by Nate Bross
Published on 2010-05-06T19:34:18Z Indexed on 2010/05/06 19:38 UTC
Read the original article Hit count: 270

Filed under:
|
|
|

What is the best practice for emulating overloaded methods over WCF?

Typically I might write an interface like this

interface IInterface 
{
    MyType ReadMyType(int id);
    IEnumerable<MyType> ReadMyType(String name);
    IEnumerable<MyType> ReadMyType(String name, int maxResults);    
}

What would this interface look like after you converted it to WCF?

© Stack Overflow or respective owner

Related posts about .NET

Related posts about wcf