Skip to content

Commit

Permalink
Update FileShareAttachmentsExtensions.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Nov 4, 2024
1 parent ac879b1 commit d64ea2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Attachments.FileShare/FileShareAttachmentsExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ public static class FileShareAttachmentsExtensions
public static AttachmentSettings EnableAttachments(
this EndpointConfiguration configuration,
string fileShare,
GetTimeToKeep timeToKeep)
GetTimeToKeep? timeToKeep = null)
{
Guard.AgainstNullOrEmpty(fileShare);
var settings = configuration.GetSettings();
var attachments = new AttachmentSettings(fileShare, timeToKeep);
var attachments = new AttachmentSettings(fileShare, timeToKeep ?? TimeToKeep.Default);
settings.Set(attachments);
configuration.EnableFeature<AttachmentFeature>();
configuration.DisableFeature<AttachmentsUsedWhenNotEnabledFeature>();
Expand Down

0 comments on commit d64ea2e

Please sign in to comment.