ComplianceServer/oldcode/RiaServiceLibrary/IWeChatDbReceive.cs

32 lines
935 B
C#

using System.IO;
using System.ServiceModel;
using System.ServiceModel.Web;
namespace RiaServiceLibrary
{
[ServiceContract(Namespace = "")]
public interface IWeChatDbReceive
{
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Recive")]
void Recive(Stream input);
[OperationContract]
[WebInvoke(Method = "*",
//ResponseFormat = WebMessageFormat.Json,
//BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "Upload")]
JsonResult<string> Upload(Stream input);
[OperationContract]
[WebInvoke(Method = "*",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Bare,
UriTemplate = "test")]
void test();
}
}