src/NuGetGallery.Core/Services/ICoreFileStorageService.cs
/// <summary>
/// Generates a storage file URI giving certain permissions for the specific file. For example, this method can
/// be used to generate a URI that allows the caller to either delete (via
/// <see cref="FileUriPermissions.Delete"/>) or read (via <see cref="FileUriPermissions.Read"/>) the file.
/// </summary>
/// <param name="folderName">The folder name containing the file.</param>
/// <param name="fileName">The file name.</param>
/// <param name="permissions">The permissions to give to the privileged URI.</param>
/// <param name="endOfAccess">The time when the access ends.</param>
/// <returns>The URI with privileged access.</returns>
Generates a storage file URI giving certain permissions for the specific file. For example, this method can
be used to generate a URI that allows the caller to either delete (via
) or read (via ) the file.
Generates a storage file URI giving certain permissions for the specific file . For example this method can be used to generate a URI that allows the caller to either delete ( via ) or read ( via ) the file .
Task<Uri> GetPriviledgedFileUriAsync(
            string folderName,
            string fileName,
            FileUriPermissions permissions,
            DateTimeOffset endOfAccess);
Task < Uri > GetPriviledgedFileUriAsync ( string folderName , string fileName , FileUriPermissions permissions , DateTimeOffset endOfAccess ) ;
Generates a storage file URI giving certain permissions for the specific file.
Generates a storage file URI giving certain permissions for the specific file .
The URI with privileged access.
The URI with privileged access .
folderName
string
The folder name containing the file.
The folder name containing the file .
fileName
string
The file name.
The file name .
permissions
FileUriPermissions
The permissions to give to the privileged URI.
The permissions to give to the privileged URI .
endOfAccess
DateTimeOffset
The time when the access ends.
The time when the access ends .