Ejemplo n.º 1
0
        public async Task <bool> SetState(string linkId, LinkState state)
        {
            var url = _urlBuilder.BuildSetStateUrl(
                linkId,
                Enum.GetName(typeof(LinkState), state)?.ToLower() ?? string.Empty);

            _logger.LogTrace($"setting {linkId} to state {state}...");

            return(await SendAsyncRequest(url));
        }