private async Task <XElement> GetNotificationActionPropertiesAsync(int id, CancellationToken token) { var xml = await RequestEngine.ExecuteRequestAsync(new GetObjectPropertyParameters(id, ObjectType.Notification), ObjectSettings.GetXml, token).ConfigureAwait(false); xml = ResponseParser.GroupNotificationActionProperties(xml); return(xml); }
private async Task <XElement> GetNotificationActionPropertiesAsync(Either <IPrtgObject, int> objectOrId, CancellationToken token) { var xml = await RequestEngine.ExecuteRequestAsync(new GetObjectPropertyParameters(objectOrId, ObjectType.Notification), HtmlParser.Default.GetXml, token).ConfigureAwait(false); xml = ResponseParser.GroupNotificationActionProperties(xml); return(xml); }
private XElement GetNotificationActionProperties(int id, CancellationToken token) { var xml = RequestEngine.ExecuteRequest(new GetObjectPropertyParameters(id, ObjectType.Notification), ObjectSettings.GetXml, token); xml = ResponseParser.GroupNotificationActionProperties(xml); return(xml); }
private XElement GetNotificationActionProperties(Either <IPrtgObject, int> objectOrId, CancellationToken token) { var xml = RequestEngine.ExecuteRequest(new GetObjectPropertyParameters(objectOrId, ObjectType.Notification), HtmlParser.Default.GetXml, token); xml = ResponseParser.GroupNotificationActionProperties(xml); return(xml); }