Show / Hide Table of Contents

Class Options

Inheritance
System.Object
Options
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: CG.Web.MegaApiClient
Assembly: MegaApiClient.dll
Syntax
public class Options

Constructors

| Improve this Doc View Source

Options(String, Boolean, Options.ComputeApiRequestRetryWaitDelayDelegate, Int32, Int32, Int64)

Declaration
public Options(string applicationKey = "axhQiYyQ", bool synchronizeApiRequests = true, Options.ComputeApiRequestRetryWaitDelayDelegate computeApiRequestRetryWaitDelay = null, int bufferSize = 65536, int chunksPackSize = 1048576, long reportProgressChunkSize = 65536L)
Parameters
Type Name Description
System.String applicationKey
System.Boolean synchronizeApiRequests
Options.ComputeApiRequestRetryWaitDelayDelegate computeApiRequestRetryWaitDelay
System.Int32 bufferSize
System.Int32 chunksPackSize
System.Int64 reportProgressChunkSize

Fields

| Improve this Doc View Source

DefaultApiRequestAttempts

Declaration
public const int DefaultApiRequestAttempts = 17
Field Value
Type Description
System.Int32
| Improve this Doc View Source

DefaultApiRequestDelay

Declaration
public const int DefaultApiRequestDelay = 100
Field Value
Type Description
System.Int32
| Improve this Doc View Source

DefaultApiRequestDelayFactor

Declaration
public const float DefaultApiRequestDelayFactor = 1.5F
Field Value
Type Description
System.Single
| Improve this Doc View Source

DefaultApplicationKey

Declaration
public const string DefaultApplicationKey = "axhQiYyQ"
Field Value
Type Description
System.String
| Improve this Doc View Source

DefaultBufferSize

Declaration
public const int DefaultBufferSize = 65536
Field Value
Type Description
System.Int32
| Improve this Doc View Source

DefaultChunksPackSize

Declaration
public const int DefaultChunksPackSize = 1048576
Field Value
Type Description
System.Int32
| Improve this Doc View Source

DefaultReportProgressChunkSize

Declaration
public const long DefaultReportProgressChunkSize = 65536L
Field Value
Type Description
System.Int64
| Improve this Doc View Source

DefaultSynchronizeApiRequests

Declaration
public const bool DefaultSynchronizeApiRequests = true
Field Value
Type Description
System.Boolean

Properties

| Improve this Doc View Source

ApplicationKey

Declaration
public string ApplicationKey { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

BufferSize

Size of the buffer used when downloading files This value has an impact on the progression. A lower value means more progression reports but a possible higher CPU usage

Declaration
public int BufferSize { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ChunksPackSize

Upload is splitted in multiple fragments (useful for big uploads) The size of the fragments is defined by mega.nz and are the following: 0 / 128K / 384K / 768K / 1280K / 1920K / 2688K / 3584K / 4608K / ... (every 1024 KB) / EOF The upload method tries to upload multiple fragments at once. Fragments are merged until the total size reaches this value. The special value -1 merges all chunks in a single fragment and a single upload

Declaration
public int ChunksPackSize { get; }
Property Value
Type Description
System.Int32
| Improve this Doc View Source

ComputeApiRequestRetryWaitDelay

Declaration
public Options.ComputeApiRequestRetryWaitDelayDelegate ComputeApiRequestRetryWaitDelay { get; }
Property Value
Type Description
Options.ComputeApiRequestRetryWaitDelayDelegate
| Improve this Doc View Source

ReportProgressChunkSize

Declaration
public long ReportProgressChunkSize { get; }
Property Value
Type Description
System.Int64
| Improve this Doc View Source

SynchronizeApiRequests

Declaration
public bool SynchronizeApiRequests { get; }
Property Value
Type Description
System.Boolean
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2013-2024 - Gregoire Pailler - MegaApiClient 1.10.5