public async Task PublishAsync(string channel, string id, string previousId, HttpResponseFormat responseFormat = null, HttpStreamFormat streamFormat = null) { var item = new Item() { Id = id, PreviousId = previousId }; if (responseFormat != null) item.Formats.Add(responseFormat); if (streamFormat != null) item.Formats.Add(streamFormat); await PublishAsync(channel, item); }
public async Task PublishAsync(string channel, string id, string previousId, HttpResponseFormat responseFormat = null, HttpStreamFormat streamFormat = null) { var item = new Item() { Id = id, PreviousId = previousId }; if (responseFormat != null) { item.Formats.Add(responseFormat); } if (streamFormat != null) { item.Formats.Add(streamFormat); } await PublishAsync(channel, item); }