public long PublishByte(string channel, byte[] value) { if (pubsub.PublishByte(channel, value) == 0) { //订阅者为0,或者订阅者出现异常,我们可以重试 RepeatAction(channel, () => { return(pubsub.PublishByte(channel, value) > 0); }); } return(0); }
public long PublishByte(string channel, byte[] value) { if (pubsub.PublishByte(channel, value) == 0) { //订阅者为0,或者订阅者出现异常,我们可以重试 RepeatAction(channel, () => { return(pubsub.PublishByte(channel, value) > 0); }); } return(0); }