Search Results for

    Show / Hide Table of Contents
    View Source

    Class TemporaryFileServiceExtensions

    Provides extension methods for ITemporaryFileService.

    Inheritance
    object
    Namespace: Umbraco.Extensions
    Assembly: Umbraco.Core.dll
    Syntax
    public static class TemporaryFileServiceExtensions

    Methods

    View Source

    EnlistDeleteIfScopeCompletes(ITemporaryFileService, Guid, ICoreScopeProvider, string)

    Enlists a temporary file for deletion when the current scope completes successfully.

    Declaration
    public static void EnlistDeleteIfScopeCompletes(this ITemporaryFileService temporaryFileService, Guid temporaryFileKey, ICoreScopeProvider scopeProvider, string memberName = "")
    Parameters
    Type Name Description
    ITemporaryFileService temporaryFileService

    The temporary file service.

    Guid temporaryFileKey

    The key of the temporary file to delete.

    ICoreScopeProvider scopeProvider

    The core scope provider.

    string memberName

    The name of the calling member (automatically populated).

    • View Source
    In this article
    Back to top Copyright © 2016-present Umbraco
    Generated by DocFX