public void RestoreBackup(IApiContext apiContext) { if (apiContext.Request.Type != JTokenType.Object) { throw new NotSupportedException(); } var eventArgs = new BackupEventArgs(apiContext.Request); RestoringBackup?.Invoke(this, eventArgs); }
public void RestoreBackup(IApiCall apiCall) { if (apiCall.Parameter.Type != JTokenType.Object) { throw new NotSupportedException(); } var eventArgs = new BackupEventArgs(apiCall.Parameter); RestoringBackup?.Invoke(this, eventArgs); }