Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Deprecate Old API in favour of the New API

  • Loading branch information...
commit 605f2382493139ecb96809fce121612903bf6f8d 1 parent 478a86f
@mythz mythz authored
View
5 src/ServiceStack.Interfaces/ServiceHost/IRestDeleteService.cs
@@ -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);
}
View
5 src/ServiceStack.Interfaces/ServiceHost/IRestGetService.cs
@@ -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);
}
View
3  src/ServiceStack.Interfaces/ServiceHost/IRestOptionsService.cs
@@ -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);
View
5 src/ServiceStack.Interfaces/ServiceHost/IRestPostService.cs
@@ -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);
}
View
5 src/ServiceStack.Interfaces/ServiceHost/IRestPutService.cs
@@ -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);
}
View
5 src/ServiceStack.Interfaces/ServiceHost/IRestService.cs
@@ -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>,
View
5 src/ServiceStack.Interfaces/ServiceHost/IService`1.cs
@@ -1,3 +1,5 @@
+using System;
+
namespace ServiceStack.ServiceHost
{
/// <summary>
@@ -5,7 +7,8 @@ namespace ServiceStack.ServiceHost
/// 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);
}
View
1  src/ServiceStack.ServiceInterface/RestServiceBase.cs
@@ -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>,
View
1  src/ServiceStack.ServiceInterface/ServiceBase.cs
@@ -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>
{
Please sign in to comment.
Something went wrong with that request. Please try again.