Пример #1
0
        public void RestoreBackup(IApiContext apiContext)
        {
            if (apiContext.Request.Type != JTokenType.Object)
            {
                throw new NotSupportedException();
            }

            var eventArgs = new BackupEventArgs(apiContext.Request);

            RestoringBackup?.Invoke(this, eventArgs);
        }
Пример #2
0
        public void RestoreBackup(IApiCall apiCall)
        {
            if (apiCall.Parameter.Type != JTokenType.Object)
            {
                throw new NotSupportedException();
            }

            var eventArgs = new BackupEventArgs(apiCall.Parameter);

            RestoringBackup?.Invoke(this, eventArgs);
        }