Class HttpUploadSource

Provides access to a file via HTTP/HTTPS that will be uploaded to Content Hub.

Inheritance
object
HttpUploadSource
Implements
Namespace: StylelabsStylelabs.MSdkWebClientModelsUpload
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
RequestResponse

public class HttpUploadSource : IUploadSource

Constructors

HttpUploadSource(IWebMClient, Uri, string)

Initializes a new instance of the HttpUploadSource class.

Declaration
RequestResponse

public HttpUploadSource(IWebMClient client, Uri uri, string name = "")
Parameters
TypeNameDescription
IWebMClientclient

The IWebMClient instance.

Uriuri

The pointing to the file.

stringname

The file name.

Properties

Name

Gets the name of the file.

Declaration
RequestResponse

public string Name { get; }
Property Value
TypeDescription
string

Methods

GetStreamAsync()

Gets a to access the underlying source.

Declaration
RequestResponse

public Task<Stream> GetStreamAsync()
Returns
TypeDescription
Task<>Stream

A .

Implements

Do you have some feedback for us?

If you have suggestions for improving this article,