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