forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIReplyClient.cs
More file actions
29 lines (24 loc) · 939 Bytes
/
IReplyClient.cs
File metadata and controls
29 lines (24 loc) · 939 Bytes
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
using System.IO;
using ServiceStack.ServiceHost;
namespace ServiceStack.Service
{
public interface IReplyClient
{
/// <summary>
/// Sends the specified request.
/// </summary>
/// <param name="request">The request.</param>
/// <returns></returns>
TResponse Send<TResponse>(object request);
TResponse Send<TResponse>(IReturn<TResponse> request);
void Send(IReturnVoid request);
#if !NETFX_CORE
TResponse PostFile<TResponse>(string relativeOrAbsoluteUrl, FileInfo fileToUpload, string mimeType);
#endif
TResponse PostFile<TResponse>(string relativeOrAbsoluteUrl, Stream fileToUpload, string fileName, string mimeType);
#if !NETFX_CORE
TResponse PostFileWithRequest<TResponse>(string relativeOrAbsoluteUrl, FileInfo fileToUpload, object request);
#endif
TResponse PostFileWithRequest<TResponse>(string relativeOrAbsoluteUrl, Stream fileToUpload, string fileName, object request);
}
}