Class TemporaryFileServiceExtensions
Provides extension methods for ITemporaryFileService.
Inheritance
object
Namespace: Umbraco.Extensions
Assembly: Umbraco.Core.dll
Syntax
public static class TemporaryFileServiceExtensions
Methods
View SourceEnlistDeleteIfScopeCompletes(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). |