1. Stylelabs.M.Sdk.WebClient.Models.Upload

Class HttpUploadSource

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

Inheritance

object

HttpUploadSource

Implements

IUploadSource

Namespace: StylelabsStylelabs.MSdkWebClientModelsUpload

Assembly: Stylelabs.M.Sdk.WebClient.dll

Syntax

public class HttpUploadSource : IUploadSource

Constructors

HttpUploadSource(IWebMClient, Uri, string)

Initializes a new instance of the HttpUploadSource class.

Declaration

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

Parameters

TypeNameDescription
IWebMClientclientThe IWebMClient instance.
UriuriThe pointing to the file.
stringnameThe file name.

Properties

Name

Gets the name of the file.

Declaration

public string Name { get; }

Property Value

TypeDescription
string

Methods

GetStreamAsync()

Gets a to access the underlying source.

Declaration

public Task<Stream> GetStreamAsync()

Returns

TypeDescription
Task<>StreamA .

Implements

IUploadSource

If you have suggestions for improving this article, let us know!