public void GetMemoryStates() { this.InteractiveWrapper(async(MixerConnection connection, InteractiveClient interactiveClient) => { this.ClearPackets(); InteractiveIssueMemoryWarningModel memoryWarning = await interactiveClient.GetMemoryStates(); Assert.IsNotNull(memoryWarning); Assert.IsNotNull(memoryWarning.resources); }); }
private void Client_OnIssueMemoryWarning(object sender, InteractiveIssueMemoryWarningModel e) { this.OnIssueMemoryWarning(this, e); }
private void InteractiveClient_OnIssueMemoryWarning(object sender, InteractiveIssueMemoryWarningModel e) { this.InteractiveDataTextBlock.Text += "Memory Warning Issued: " + e.usedBytes + " bytes used out of " + e.totalBytes + " total bytes" + Environment.NewLine; }