Beispiel #1
0
 public Task <ChangeTagsForResourceResponse> ChangeTagsForHealthCheckAsync(
     string id,
     IEnumerable <Tag> addTags,
     IEnumerable <string> removeTags     = null,
     CancellationToken cancellationToken = default(CancellationToken))
 => _locker.Lock(() => _client.ChangeTagsForResourceAsync(new ChangeTagsForResourceRequest()
 {
     ResourceType  = TagResourceType.Healthcheck,
     ResourceId    = id,
     AddTags       = addTags?.ToList(),
     RemoveTagKeys = removeTags?.ToList()
 }, cancellationToken).EnsureSuccessAsync());