public Task <long> PublishAsync(string channel, string value) { if (this.IsConnected) { return(this.multiplexer.GetSubscriber().PublishAsync(channel, value)); } else { return(TaskCache.FromResult(0L)); } }
public Task <KeyValuePair <string, string>[]> GetConfigAsync() { if (this.IsConnected) { var server = this.GetServer(); return(server.ConfigGetAsync()); } else { return(TaskCache.FromResult(new KeyValuePair <string, string>[] { })); } }