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); }
private void _raise_success(FailureCodes f) { _current_action_fail_count = 0; if (OnSuccess != null) OnSuccess(this, f); }
public OnionMessageDefinition(ushort typeId, Type type, ReadOnlyCollection <Property> properties, FailureCodes failureCodes) : base(typeId, type, properties) { FailureCodes = failureCodes; }