@@ -310,7 +310,7 @@ public event Action OnCheckingForUpdate
310310 /// </summary>
311311 public event Action < UpdateInfo > OnUpdateAvailable
312312 {
313- add => ApiEventManager . AddEvent ( "autoUpdater-update-available" , GetHashCode ( ) , _updateAvailable , value , ( args ) => JsonSerializer . Deserialize ( args , ElectronJsonContext . Default . UpdateInfo ) ) ;
313+ add => ApiEventManager . AddEvent ( "autoUpdater-update-available" , GetHashCode ( ) , _updateAvailable , value , ( args ) => args . Deserialize ( ElectronJsonContext . Default . UpdateInfo ) ) ;
314314 remove => ApiEventManager . RemoveEvent ( "autoUpdater-update-available" , GetHashCode ( ) , _updateAvailable , value ) ;
315315 }
316316
@@ -321,7 +321,7 @@ public event Action<UpdateInfo> OnUpdateAvailable
321321 /// </summary>
322322 public event Action < UpdateInfo > OnUpdateNotAvailable
323323 {
324- add => ApiEventManager . AddEvent ( "autoUpdater-update-not-available" , GetHashCode ( ) , _updateNotAvailable , value , ( args ) => JsonSerializer . Deserialize ( args , ElectronJsonContext . Default . UpdateInfo ) ) ;
324+ add => ApiEventManager . AddEvent ( "autoUpdater-update-not-available" , GetHashCode ( ) , _updateNotAvailable , value , ( args ) => args . Deserialize ( ElectronJsonContext . Default . UpdateInfo ) ) ;
325325 remove => ApiEventManager . RemoveEvent ( "autoUpdater-update-not-available" , GetHashCode ( ) , _updateNotAvailable , value ) ;
326326 }
327327
@@ -332,7 +332,7 @@ public event Action<UpdateInfo> OnUpdateNotAvailable
332332 /// </summary>
333333 public event Action < ProgressInfo > OnDownloadProgress
334334 {
335- add => ApiEventManager . AddEvent ( "autoUpdater-download-progress" , GetHashCode ( ) , _downloadProgress , value , ( args ) => JsonSerializer . Deserialize ( args , ElectronJsonContext . Default . ProgressInfo ) ) ;
335+ add => ApiEventManager . AddEvent ( "autoUpdater-download-progress" , GetHashCode ( ) , _downloadProgress , value , ( args ) => args . Deserialize ( ElectronJsonContext . Default . ProgressInfo ) ) ;
336336 remove => ApiEventManager . RemoveEvent ( "autoUpdater-download-progress" , GetHashCode ( ) , _downloadProgress , value ) ;
337337 }
338338
@@ -343,7 +343,7 @@ public event Action<ProgressInfo> OnDownloadProgress
343343 /// </summary>
344344 public event Action < UpdateInfo > OnUpdateDownloaded
345345 {
346- add => ApiEventManager . AddEvent ( "autoUpdater-update-downloaded" , GetHashCode ( ) , _updateDownloaded , value , ( args ) => JsonSerializer . Deserialize ( args , ElectronJsonContext . Default . UpdateInfo ) ) ;
346+ add => ApiEventManager . AddEvent ( "autoUpdater-update-downloaded" , GetHashCode ( ) , _updateDownloaded , value , ( args ) => args . Deserialize ( ElectronJsonContext . Default . UpdateInfo ) ) ;
347347 remove => ApiEventManager . RemoveEvent ( "autoUpdater-update-downloaded" , GetHashCode ( ) , _updateDownloaded , value ) ;
348348 }
349349
0 commit comments