Hello, I'm using a ref to my editor to get the value and then copy it to the clipboard, but this seems to fail when there is more than 500-600 lines of code. I get a task cancelled exception on the GetValue() call
async void CopyToClipboard()
{
var scriptToCopy = await _editor.GetValue();
await ClipboardService.CopyToClipboard(scriptToCopy);
var msg = new NotificationMessage
{
Summary = "Copied!",
Detail = "Copied AOR script to clipboard",
Severity = NotificationSeverity.Info,
Duration = 4000
};
notificationService.Notify(msg);
}
Has anyone else experienced this or know of a way around this? Thank you
Hello, I'm using a ref to my editor to get the value and then copy it to the clipboard, but this seems to fail when there is more than 500-600 lines of code. I get a task cancelled exception on the GetValue() call
async void CopyToClipboard() { var scriptToCopy = await _editor.GetValue(); await ClipboardService.CopyToClipboard(scriptToCopy); var msg = new NotificationMessage { Summary = "Copied!", Detail = "Copied AOR script to clipboard", Severity = NotificationSeverity.Info, Duration = 4000 }; notificationService.Notify(msg); }
Has anyone else experienced this or know of a way around this? Thank you