HttpPutAsync() private method

Sends a PUT command via HTTP and returns the response.
private HttpPutAsync ( string commandUrl, string body ) : Task
commandUrl string
body string
return Task
Beispiel #1
0
 /// <summary>
 /// Attempts to rename the light.
 /// </summary>
 public async Task RenameAsync(string name) =>
 await _bridge.HttpPutAsync($"lights/{Id}", $"{{\"name\":\"{name}\"}}");