-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathConstants.cs
20 lines (16 loc) · 961 Bytes
/
Constants.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
namespace Fifthweek.Api.FileManagement.Shared
{
using System;
public class Constants
{
// If you're thinking about moving this to the Fifthweek.Shared project, consider using IBlobLocationGenerator instead.
public const string PublicFileBlobContainerName = "public";
public const string PostFeedImageThumbnailName = "feed";
public const string PostPreviewImageThumbnailName = "post-preview";
public static readonly TimeSpan WriteSignatureTimeSpan = TimeSpan.FromHours(1);
public static readonly TimeSpan PrivateReadSignatureTimeSpan = TimeSpan.FromHours(1);
public static readonly TimeSpan PublicReadSignatureTimeSpan = TimeSpan.FromDays(7);
// This should match the client. The client will try and refresh access signatures when they are this close to expiring.
public static readonly TimeSpan ReadSignatureMinimumExpiryTime = TimeSpan.FromMinutes(10);
}
}