-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathUsage.cs
More file actions
33 lines (25 loc) · 829 Bytes
/
Usage.cs
File metadata and controls
33 lines (25 loc) · 829 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
public class Usage
{
Usage(EndpointConfiguration configuration)
{
#region FileShareEnableAttachments
configuration.EnableAttachments(
fileShare: "networkSharePath",
timeToKeep: _ => TimeSpan.FromDays(7));
#endregion
#region FileShareEnableAttachmentsRecommended
configuration.EnableAttachments(
fileShare: "networkSharePath",
timeToKeep: TimeToKeep.Default);
#endregion
}
static void DisableCleanupTask(EndpointConfiguration configuration)
{
#region FileShareDisableCleanupTask
var attachments = configuration.EnableAttachments(
fileShare: "networkSharePath",
timeToKeep: TimeToKeep.Default);
attachments.DisableCleanupTask();
#endregion
}
}