Code
·
17 lines
·
322 bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17using System.ServiceModel;
namespace Weather
{
[ServiceContract]
interface IContract
{
[OperationContract]
string Info();
[OperationContract]
int ReadBlock(ushort vid, ushort pid, ushort adres, ref byte[] buffer);
[OperationContract]
bool WriteByte(ushort vid, ushort pid, ushort adres, byte b);
}
}