In the below code, how do I replace ExcludeExceptionEvents property as its being deprecated? and how do I use PropertySelector in this case?
private object[][] BuildDeviceStatusInfoCalls(List<Device> devices)
{
object[][] logRecordCalls = new object[devices.Count][];
PropertySelector prop = new PropertySelector();
prop.Fields = new List<string>();
prop.Fields.Add("exceptionEvents");
prop.IsIncluded = true;
for (int i = 0; i < devices.Count; i++)
{
logRecordCalls[i] = new object[4];
logRecordCalls[i][0] = "Get";
logRecordCalls[i][1] = typeof(DeviceStatusInfo);
logRecordCalls[i][2] = new
{
search = new DeviceStatusInfoSearch()
{
DeviceSearch = new DeviceSearch()
{
Id = devices[i].Id
},
ExcludeExceptionEvents = true
}
};
logRecordCalls[i][3] = typeof(List<DeviceStatusInfo>);
}
return logRecordCalls;
}