alielie
7 天以前 e57938fbda9bff702004038f76d009422968bff5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
using DeviceService.Core;
 
namespace DeviceService.Service
{
 
    public class RequestArg
    {
        public RequestData Data { get; set; }
        public string Raw { get; set; }
        public IClient Client { get; set; }
    }
 
    public interface IService : IDisposable
    {
        event EventHandler<IClient> ClientConnected;
        event EventHandler<IClient> ClientDisConnected;
        event EventHandler<RequestArg> DataReceived;
 
        bool Start(out string msg);
 
        bool Stop(out string msg);
    }
}