Is there a nice way to version the data types and methods in WCF services?
Something like this would be nice to include a method in version 1.0 to version 4.5.
[ServiceContract()]
interface ITradeTrackingService
{
[OperationContract()]
[Version(1.0, 4.5)]
void PublishQuote(Quote quote);
}
And something simular on datatypes.
Then i would like to in my url do like this:
server.com/ws/2.3/
And then in my Global.asax BeginRequest do something like this:
protected void Application_BeginRequest(object sender, EventArgs e)
{
Service.Version = someParsingOfUrl(); // return 2.3;
}
And then the correct methods were exposed and the correct values in the datatypes were exposed.
Is this just me dreaming or can this be done in some way?