22 lines
615 B
C#
22 lines
615 B
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Linq;
|
||
using System.Runtime.Serialization;
|
||
using System.ServiceModel;
|
||
using System.Text;
|
||
|
||
namespace LightService
|
||
{
|
||
/*
|
||
// 注意: 使用“重构”菜单上的“重命名”命令,可以同时更改代码和配置文件中的接口名“IService1”。
|
||
[OperationContract]
|
||
[WebInvoke(
|
||
Method = "GET",
|
||
RequestFormat = WebMessageFormat.Json,
|
||
ResponseFormat = WebMessageFormat.Json,
|
||
UriTemplate = "turnOnLightById?id={id}"
|
||
)]
|
||
string turnOnLightById(int id);
|
||
*/
|
||
}
|