示例#1
0
        public void Handle(MessageWithLargePayload message)
        {
            string filePath         = Path.Combine(@"\\share\databus_attachments\", message.LargeBlob.Key);
            var    removeAttachment = new RemoveDatabusAttachment
            {
                FilePath = filePath
            };

            bus.Defer(TimeSpan.FromDays(30), removeAttachment);
        }
示例#2
0
 public void Handle(RemoveDatabusAttachment message)
 {
     var filePath = message.FilePath;
     // Code to clean up
 }