Beispiel #1
0
        public void OnServiceConnector(IFromService fromService, IServiceToDevice toDevice)
        {
            if (ServiceConnector == null)
            {
                return;
            }

            ServiceConnector(this, new ServiceConnectorArgs(fromService, toDevice));
        }
Beispiel #2
0
 public override object RunServiceConnector(IFromService fromService, IServiceToDevice toDevice)
 {
     Console.WriteLine(this.DeviceParameter.DeviceName + ",接收到云端指令:" + toDevice.Text);
     return(this.DeviceParameter.DeviceName + ",执行完成");
 }
Beispiel #3
0
 public override object RunServiceConnector(IFromService fromService, IServiceToDevice toDevice)
 {
     throw new NotImplementedException();
 }
Beispiel #4
0
 public override IServiceConnectorCallbackResult RunServiceConnector(IFromService fromService, IServiceToDevice toDevice,
                                                                     AsyncServiceConnectorCallback asyncService)
 {
     throw new NotImplementedException();
 }
Beispiel #5
0
 public abstract object RunServiceConnector(IFromService fromService, IServiceToDevice toDevice);
 public ServiceConnectorArgs(IFromService fromDevice, IServiceToDevice toDevice)
 {
     FromService     = fromDevice;
     ServiceToDevice = toDevice;
 }