-
Notifications
You must be signed in to change notification settings - Fork 1.6k
/
IService.cs
76 lines (70 loc) · 1.47 KB
/
IService.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
using System;
using ServiceStack.Messaging;
namespace ServiceStack.ServiceHost
{
/// <summary>
/// Marker interfaces
/// </summary>
public interface IService { }
public interface IReturn { }
public interface IReturn<T> : IReturn { }
public interface IReturnVoid : IReturn { }
/* Supported signatures: */
//Not used or needed, here in-case someone wants to know what the correct signatures should be
public interface IAny<T>
{
object Any(T request);
}
public interface IGet<T>
{
object Get(T request);
}
public interface IPost<T>
{
object Post(T request);
}
public interface IPut<T>
{
object Put(T request);
}
public interface IDelete<T>
{
object Delete(T request);
}
public interface IPatch<T>
{
object Patch(T request);
}
public interface IOptions<T>
{
object Options(T request);
}
public interface IAnyVoid<T>
{
void Any(T request);
}
public interface IGetVoid<T>
{
void Get(T request);
}
public interface IPostVoid<T>
{
void Post(T request);
}
public interface IPutVoid<T>
{
void Put(T request);
}
public interface IDeleteVoid<T>
{
void Delete(T request);
}
public interface IPatchVoid<T>
{
void Patch(T request);
}
public interface IOptionsVoid<T>
{
void Options(T request);
}
}