logo
logo

Class HttpUploadSource

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

Inheritance
System.Object
HttpUploadSource
Implements
Namespace: Stylelabs.M.Sdk.WebClient.Models.Upload
Assembly: Stylelabs.M.Sdk.WebClient.dll
Syntax
public class HttpUploadSource : object, IUploadSource

Constructors

HttpUploadSource(IWebMClient, Uri, String)

Initializes a new instance of the HttpUploadSource class.

Declaration
public HttpUploadSource(IWebMClient client, Uri uri, string name = "")
Parameters
Type Name Description
IWebMClient client

The IWebMClient instance.

Uri uri

The pointing to the file.

System.String name

The file name.

Properties

Name

Gets the name of the file.

Declaration
public string Name { get; }
Property Value
Type Description
System.String

Methods

GetStreamAsync()

Gets a to access the underlying source.

Declaration
public Task<Stream> GetStreamAsync()
Returns
Type Description
Task<Stream>

Implements

Can we improve this article ? Provide feedback