13 internal const int DEFAULT_BUFFER_SIZE = 4096;
20 get => _enableDebugLogging;
23 _enableDebugLogging = value;
26 "as it makes use of Debug.WriteLine, which is compiled out in Release mode. " +
27 "To make use of this you will need to reference the Debug version of " +
28 "this library, which should be available on MyGet at: " +
29 "https://www.myget.org/feed/analyzere/package/nuget/AnalyzeRe.Client");
33 private static bool _enableDebugLogging;
80 return !status.status.IsBusy();
87 $"the timeout was exceeded. ({polling_timeout / (1000d * 60d)} minutes)",
ex,
91#endregion Public Methods
93#region Internal Helper Methods
99 "The upload process has been cancelled by the user.");
106 FileShare.ReadWrite, DEFAULT_BUFFER_SIZE);
108#endregion Internal Helper Methods
Describes an endpoint off of some types of resources from which an associated "large data file" can b...
Describes a collection of resources which can be listed.
API methods / requests made available to the user.
static void PollUntil(Func< bool > request, AnalyzeRe.PollingOptions pollingOptions=null)
Poll the specified request until it returns true.
Parameters to be used in a Large Upload operation.
Action< StatusResponse > OnProgressUpdate
Action to invoke every time a chunk is uploaded. Callback is supplied with a double indicating progre...
Parameters to be used in a Large Data Upload operation.
PollingOptions commit_polling_options
Determines how the system polls the status of the data file while waiting for the data to be processe...
Indicates the status of a data endpoint.
Large Data Upload Utilities.
static StatusResponse PollUntilDataProcessed(LargeDataSubResource dataEndpoint, AsyncParameters parameters)
Polls the dataEndpoint until the state is no longer Processing.
static StatusResponse PollUntilDataProcessed(LargeDataSubResource dataEndpoint, Parameters parameters=null)
Polls the dataEndpoint until the state is no longer Processing.
static bool EnableDebugLogging
When in debug mode, allows detailed debug logging of the data upload process.
static MemoryStream GetStringStream(string input)
Generate a byte stream from a string which can be used in the LargeStreamUpload methods.
Thrown when a request requires additional time to complete, but it exceeds the time we are willing to...
CancellationToken? CancellationToken
A cancellation token (if available) supplied to the polling method to allow the polling task to be ca...
int MaxPollTotalTime
The maximum time (in milliseconds) to poll the request before raising a NotWaitingException....
Extends the TimeoutException class to contain the IRestResponse that timed out.
Interface for Base class used by all resources.