Class TestUploadedFile<TCommand>
An uploaded file with the app's command for testing the handlers of chunked uploads without a request, which Create<TCommand>(byte[], string, TCommand, string?) creates. Its content is in a temporary file, which is deleted when it is disposed unless the handler moved it.
Implements
IBindableFromHttpContext<UploadedFile<TCommand>>
Inherited Members
Namespace: Singulink.Net.Http.Api.Service.Testing
Assembly: Singulink.Net.Http.Api.Service.Testing.dll
Syntax
public sealed class TestUploadedFile<TCommand> : UploadedFile<TCommand>, IBindableFromHttpContext<UploadedFile>, IBindableFromHttpContext<UploadedFile<TCommand>>, IDisposable
Type Parameters
| Name | Description |
|---|---|
| TCommand | The type of the command. |
Methods
| Name | Description |
|---|---|
| Dispose() | Deletes the temporary file, unless it was moved. |