Added base models for servers. Added ws packet connection utility. Added some ui from old branch. Added some packeges. And more smaller things
This commit is contained in:
18
Moonlight/Core/Services/Interop/ClipboardService.cs
Normal file
18
Moonlight/Core/Services/Interop/ClipboardService.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using Microsoft.JSInterop;
|
||||
|
||||
namespace Moonlight.Core.Services.Interop;
|
||||
|
||||
public class ClipboardService
|
||||
{
|
||||
private readonly IJSRuntime JsRuntime;
|
||||
|
||||
public ClipboardService(IJSRuntime jsRuntime)
|
||||
{
|
||||
JsRuntime = jsRuntime;
|
||||
}
|
||||
|
||||
public async Task Copy(string content)
|
||||
{
|
||||
await JsRuntime.InvokeVoidAsync("moonlight.clipboard.copy", content);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user