public UpdateAsync ( PushType pushtype = PushType.Multicast, int retries = 3, int retriesDelay = 60 ) : Task |
||
pushtype | PushType | |
retries | int | |
retriesDelay | int | |
return | Task |
public async Task<bool> UpdateAsync(PushType pushtype = PushType.Multicast, int retries = 3, int retriesDelay = 60, params string[] subscribers)
{
var content = new JsonContent(content: new _Update( pushtype, retries, retriesDelay, subscribers));
var response = await _client.PostAsync(string.Format("queues/{0}", Name), content);
return response.IsSuccessStatusCode;
}