Example #1
0
 public static IAsyncGlobalShortcutHandler ToGlobalShortcutHandler(this IGlobalShortcutHandler handler, string callbackId) =>
 new GlobalShortcutHandlerAsyncWrapper(handler).ToGlobalShortcutHandler(callbackId);
Example #2
0
 public static IAsyncGlobalShortcutHandler ToGlobalShortcutHandler(this IGlobalShortcutHandler handler) =>
 new GlobalShortcutHandlerAsyncWrapper(handler);
 public TConfig RegisterGlobalShortcutHandler(string callbackId, IGlobalShortcutHandler handler) =>
 RegisterAsyncGlobalShortcutHandler(callbackId, handler.ToGlobalShortcutHandler());
 public TConfig RegisterGlobalShortcutHandler(IGlobalShortcutHandler handler) =>
 RegisterAsyncGlobalShortcutHandler(handler.ToGlobalShortcutHandler());
 public GlobalShortcutHandlerAsyncWrapper(IGlobalShortcutHandler syncHandler) => _syncHandler = syncHandler;