public async Task PerformAsync( IClipboardDataPackage package) { clipboardInjectionService.InjectData(package); await clipboardPasteService.PasteClipboardContentsAsync(); logger.Information("Paste action performed.", 1); }
public async Task PerformAsync( IClipboardDataPackage package) { var textData = (IClipboardTextData) await GetFirstSupportedItem(package); await clipboardInjectionService.InjectTextAsync(textData.Text); await clipboardPasteService.PasteClipboardContentsAsync(); }