示例#1
0
        public IActionResult Get()
        {
            var result = string.Empty;

            if (IsAuthenticatedUser())
            {
                result = ClipboardManager.GetClipboard(GetCurrentUser());
            }
            else
            {
                result = ClipboardManager.GetAnonymousClipboard();
            }
            return(Ok(result));
        }
 public void Paste()
 {
     text.text = ClipboardManager.GetClipboard();
 }