HTTP API Toolkit HTTP API Toolkit
HTTP API Toolkit HTTP API Toolkit
DocFX + Singulink = ♥

Search Results for

    Class TestUploadedFile

    An uploaded file for testing the handlers of chunked uploads without a request. Its content is in a temporary file, which is deleted when it is disposed unless the handler moved it.

    Inheritance
    object
    UploadedFile
    TestUploadedFile
    Implements
    IBindableFromHttpContext<UploadedFile>
    IDisposable
    Inherited Members
    UploadedFile.Id
    UploadedFile.FileName
    UploadedFile.Length
    UploadedFile.ContentType
    UploadedFile.FilePath
    UploadedFile.OpenReadStream()
    UploadedFile.MoveToAsync(string, CancellationToken)
    Namespace: Singulink.Net.Http.Api.Service.Testing
    Assembly: Singulink.Net.Http.Api.Service.Testing.dll
    Syntax
    public sealed class TestUploadedFile : UploadedFile, IBindableFromHttpContext<UploadedFile>, IDisposable

    Methods

    Name Description
    Create(byte[], string, string?)

    Creates an uploaded file with the specified content in a temporary file, which FilePath has.

    Create<TCommand>(byte[], string, TCommand, string?)

    Creates an uploaded file with the specified content in a temporary file, which FilePath has, and the specified command.

    Dispose()

    Deletes the temporary file, unless it was moved.

    © Singulink. All rights reserved.