mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-14 05:34:48 +00:00
Fix warnings
This commit is contained in:
@@ -68,12 +68,10 @@ namespace ElectronNET.API
|
||||
await BridgeConnector.Socket.Emit(subscriber, eventName, listener).ConfigureAwait(false);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Subscribe to an unmapped electron event.
|
||||
/// </summary>
|
||||
/// <summary>Subscribe to an unmapped electron event.</summary>
|
||||
/// <param name="moduleName">The name of the module, e.g. app, dock, etc...</param>
|
||||
/// <param name="eventName">The name of the event</param>
|
||||
/// <param name="fn">The event handler</param>
|
||||
/// <param name="action">The action.</param>
|
||||
public async Task Once(string moduleName, string eventName, Action action)
|
||||
{
|
||||
var listener = $"{moduleName}{_textInfo.ToTitleCase(eventName)}Completed";
|
||||
|
||||
@@ -48,8 +48,6 @@
|
||||
default:
|
||||
throw new ArgumentOutOfRangeException();
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
private StartupMethod DetectAppTypeAndStartup()
|
||||
|
||||
Reference in New Issue
Block a user