Show / Hide Table of Contents

    Class TemporaryDataFactory

    Factory to create ITemporaryData objects.

    Inheritance
    Object
    TemporaryDataFactory
    Implements
    ITemporaryDataFactory
    Inherited Members
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Object.ReferenceEquals(Object, Object)
    Object.ToString()
    Namespace: FubarDev.FtpServer.BackgroundTransfer
    Assembly: FubarDev.FtpServer.Abstractions.dll
    Syntax
    public class TemporaryDataFactory : ITemporaryDataFactory

    Constructors

    | Improve this Doc View Source

    TemporaryDataFactory()

    Initializes a new instance of the TemporaryDataFactory class.

    Declaration
    public TemporaryDataFactory()

    Methods

    | Improve this Doc View Source

    AddCreator(Int64, TemporaryDataFactory.CreateAsyncDelegate)

    Adds a creator for the given minimum size.

    Declaration
    protected void AddCreator(long minimumSize, TemporaryDataFactory.CreateAsyncDelegate createAsyncDelegate)
    Parameters
    Type Name Description
    Int64 minimumSize

    The minimum size required to use the passed creation function.

    TemporaryDataFactory.CreateAsyncDelegate createAsyncDelegate

    The creation function when the expected size exceeds the minimum size.

    | Improve this Doc View Source

    CreateAsync(Stream, Nullable<Int64>, CancellationToken)

    Declaration
    public Task<ITemporaryData> CreateAsync(Stream input, long? expectedSize, CancellationToken cancellationToken)
    Parameters
    Type Name Description
    Stream input
    Nullable<Int64> expectedSize
    CancellationToken cancellationToken
    Returns
    Type Description
    Task<ITemporaryData>

    Implements

    ITemporaryDataFactory
    • Improve this Doc
    • View Source
    Back to top
    Copyright © 2018 Fubar Development Junker
    Generated by DocFX
    Creative Commons License
    FluentMigrator Documentation by FluentMigrator Project is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.