Class QueueUploadResult<T>
Result of an attempt to upload from an upload queue.
Inherited Members
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 SourceQueueUploadResult(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 |
QueueUploadResult(Exception?)
Constructor for failed upload.
Declaration
public QueueUploadResult(Exception? ex)
Parameters
Type | Name | Description |
---|---|---|
Exception | ex | Fatal exception |
Properties
| Edit this page View SourceException
Exception if upload failed completely.
Declaration
public Exception? Exception { get; }
Property Value
Type | Description |
---|---|
Exception |
Failed
Items that failed to upload
Declaration
public IEnumerable<T>? Failed { get; }
Property Value
Type | Description |
---|---|
IEnumerable<T> |
IsFailed
True if upload failed completely.
Declaration
public bool IsFailed { get; }
Property Value
Type | Description |
---|---|
bool |
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> |