public void Handle(MessageWithLargePayload message) { var filePath = Path.Combine(@"\\share\databus_attachments\", message.LargeBlob.Key); var removeAttachment = new RemoveDatabusAttachment { FilePath = filePath }; bus.Defer(TimeSpan.FromDays(30), removeAttachment); }
public void Handle(RemoveDatabusAttachment message) { var filePath = message.FilePath; // Code to clean up }