Ejemplo n.º 1
0
        public async Task PerformAsync(
            IClipboardDataPackage package)
        {
            clipboardInjectionService.InjectData(package);
            await clipboardPasteService.PasteClipboardContentsAsync();

            logger.Information("Paste action performed.", 1);
        }
Ejemplo n.º 2
0
        public async Task PerformAsync(
            IClipboardDataPackage package)
        {
            var textData = (IClipboardTextData) await GetFirstSupportedItem(package);

            await clipboardInjectionService.InjectTextAsync(textData.Text);

            await clipboardPasteService.PasteClipboardContentsAsync();
        }