Show / Hide Table of Contents

Class QueueUploadResult<T>

Result of an attempt to upload from an upload queue.

Inheritance
object
QueueUploadResult<T>
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cognite.Extractor.Utils
Assembly: ExtractorUtils.dll
Syntax
public class QueueUploadResult<T>
Type Parameters
Name Description
T

Queue item type

Constructors

| Edit this page View Source

QueueUploadResult(IEnumerable<T>, IEnumerable<T>)

Constructor for successfull or empty upload.

Declaration
public QueueUploadResult(IEnumerable<T> uploaded, IEnumerable<T> failed)
Parameters
Type Name Description
IEnumerable<T> uploaded
IEnumerable<T> failed
| Edit this page View Source

QueueUploadResult(Exception?)

Constructor for failed upload.

Declaration
public QueueUploadResult(Exception? ex)
Parameters
Type Name Description
Exception ex

Fatal exception

Properties

| Edit this page View Source

Exception

Exception if upload failed completely.

Declaration
public Exception? Exception { get; }
Property Value
Type Description
Exception
| Edit this page View Source

Failed

Items that failed to upload

Declaration
public IEnumerable<T>? Failed { get; }
Property Value
Type Description
IEnumerable<T>
| Edit this page View Source

IsFailed

True if upload failed completely.

Declaration
public bool IsFailed { get; }
Property Value
Type Description
bool
| Edit this page View Source

Uploaded

List of items to be uploaded, may be null if upload failed, or empty if no objects were uploaded.

Declaration
public IEnumerable<T>? Uploaded { get; }
Property Value
Type Description
IEnumerable<T>

Extension Methods

DataModelUtils.GetOrCreateResourcesAsync<T, T2>(T2, 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