1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-10-17 09:42:45 +02:00
TweetDuck/windows/TweetImpl.CefSharp/Adapters/CefAdapter.cs

16 lines
333 B
C#

using System;
using CefSharp;
using TweetLib.Browser.CEF.Interfaces;
namespace TweetImpl.CefSharp.Adapters {
sealed class CefAdapter : ICefAdapter {
public static CefAdapter Instance { get; } = new ();
private CefAdapter() {}
public void RunOnUiThread(Action action) {
Cef.UIThreadTaskFactory.StartNew(action);
}
}
}