Пример #1
0
        private void _raise_failure(FailureCodes f)
        {
            _current_action_fail_count++;
            if (_current_action_fail_count < 3)
                _action_list.Add(_current_action);
            else
                _current_action_fail_count = 0;

            if (OnFailure != null)
                OnFailure(this, f);
        }
Пример #2
0
 private void _raise_success(FailureCodes f)
 {
     _current_action_fail_count = 0;
     if (OnSuccess != null)
         OnSuccess(this, f);
 }
Пример #3
0
 public OnionMessageDefinition(ushort typeId, Type type, ReadOnlyCollection <Property> properties, FailureCodes failureCodes)
     : base(typeId, type, properties)
 {
     FailureCodes = failureCodes;
 }