Permalink
Browse files

Deprecate Old API in favour of the New API

  • Loading branch information...
1 parent 478a86f commit 605f2382493139ecb96809fce121612903bf6f8d @mythz mythz committed Dec 16, 2012
@@ -1,3 +1,5 @@
+using System;
+
namespace ServiceStack.ServiceHost
{
/// <summary>
@@ -6,7 +8,8 @@ namespace ServiceStack.ServiceHost
/// EndpointAttributes.HttpDelete requests
/// </summary>
/// <typeparam name="T"></typeparam>
- public interface IRestDeleteService<T>
+ [Obsolete("Use IService - ServiceStack's New API for future services")]
+ public interface IRestDeleteService<T>
{
object Delete(T request);
}
@@ -1,3 +1,5 @@
+using System;
+
namespace ServiceStack.ServiceHost
{
/// <summary>
@@ -6,7 +8,8 @@ namespace ServiceStack.ServiceHost
/// EndpointAttributes.HttpGet requests
/// </summary>
/// <typeparam name="T"></typeparam>
- public interface IRestGetService<T>
+ [Obsolete("Use IService - ServiceStack's New API for future services")]
+ public interface IRestGetService<T>
{
object Get(T request);
}
@@ -1,3 +1,5 @@
+using System;
+
namespace ServiceStack.ServiceHost
{
/// <summary>
@@ -6,6 +8,7 @@ namespace ServiceStack.ServiceHost
/// EndpointAttributes.HttpPut requests
/// </summary>
/// <typeparam name="T"></typeparam>
+ [Obsolete("Use IService - ServiceStack's New API for future services")]
public interface IRestOptionsService<T>
{
object Options(T request);
@@ -1,3 +1,5 @@
+using System;
+
namespace ServiceStack.ServiceHost
{
/// <summary>
@@ -6,7 +8,8 @@ namespace ServiceStack.ServiceHost
/// EndpointAttributes.HttpPost requests
/// </summary>
/// <typeparam name="T"></typeparam>
- public interface IRestPostService<T>
+ [Obsolete("Use IService - ServiceStack's New API for future services")]
+ public interface IRestPostService<T>
{
object Post(T request);
}
@@ -1,3 +1,5 @@
+using System;
+
namespace ServiceStack.ServiceHost
{
/// <summary>
@@ -6,7 +8,8 @@ namespace ServiceStack.ServiceHost
/// EndpointAttributes.HttpPut requests
/// </summary>
/// <typeparam name="T"></typeparam>
- public interface IRestPutService<T>
+ [Obsolete("Use IService - ServiceStack's New API for future services")]
+ public interface IRestPutService<T>
{
object Put(T request);
}
@@ -1,10 +1,13 @@
+using System;
+
namespace ServiceStack.ServiceHost
{
/// <summary>
/// Utility interface that implements all Rest operations
/// </summary>
/// <typeparam name="T"></typeparam>
- public interface IRestService<T> :
+ [Obsolete("Use IService - ServiceStack's New API for future services")]
+ public interface IRestService<T> :
IRestGetService<T>,
IRestPostService<T>,
IRestPutService<T>,
@@ -1,11 +1,14 @@
+using System;
+
namespace ServiceStack.ServiceHost
{
/// <summary>
/// Base interface all webservices need to implement.
/// For simplicity this is the only interface you need to implement
/// </summary>
/// <typeparam name="T"></typeparam>
- public interface IService<T>
+ [Obsolete("Use IService - ServiceStack's New API for future services")]
+ public interface IService<T>
{
object Execute(T request);
}
@@ -9,6 +9,7 @@ namespace ServiceStack.ServiceInterface
/// </summary>
/// <typeparam name="TRequest">The request class that the descendent class
/// is responsible for processing.</typeparam>
+ [Obsolete("Use ServiceStack.ServiceInterface.Service - ServiceStack's New API for future services")]
public abstract class RestServiceBase<TRequest>
: ServiceBase<TRequest>,
IRestGetService<TRequest>,
@@ -19,6 +19,7 @@ namespace ServiceStack.ServiceInterface
/// also be maintained into a service specific and combined rolling error log.
/// </summary>
/// <typeparam name="TRequest"></typeparam>
+ [Obsolete("Use ServiceStack.ServiceInterface.Service - ServiceStack's New API for future services")]
public abstract class ServiceBase<TRequest>
: IService<TRequest>, IRequiresRequestContext, IServiceBase, IAsyncService<TRequest>, IRestOptionsService<TRequest>
{

0 comments on commit 605f238

Please sign in to comment.