Show / Hide Table of Contents

Enum RetryMode

When to retry a request For convenience, bit 0 indicates keeping duplicates, bit 1 indicates retrying on errors, bit 2 indicates retrying on fatal errors

Namespace: Cognite.Extensions
Assembly: Cognite.Extensions.dll
Syntax
public enum RetryMode

Fields

Name Description
None

Never retry, always stop after the first failure, multiple errors may still occur due to chunking.

OnError

Retry after a 4xx error that can be handled by cleaning the request

OnErrorKeepDuplicates

Retry after a 4xx error that can be handled by cleaning the request, but keep retrying for duplicates until they are returned when reading

OnFatal

Same as OnError, but keep retrying if a fatal error occurs

OnFatalKeepDuplicates

Same as OnErrorKeepDuplicates, but keep retrying if a fatal error occurs

Extension Methods

DataModelUtils.GetOrCreateResourcesAsync<T, RetryMode>(RetryMode, IEnumerable<InstanceIdentifier>, Func<IEnumerable<InstanceIdentifier>, IEnumerable<SourcedNodeWrite<T>>>, Func<IEnumerable<SourcedNodeWrite<T>>, SanitationMode, (IEnumerable<SourcedNodeWrite<T>>, IEnumerable<CogniteError<SourcedNodeWrite<T>>>)>, int, int, RetryMode, SanitationMode, CancellationToken)
  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX