Ejemplo n.º 1
0
        public void OnServiceConnector(IFromService fromService, IServiceToDevice toDevice)
        {
            if (ServiceConnector == null)
            {
                return;
            }

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