Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 public void Handle(RemoveDatabusAttachment message)
 {
     var filePath = message.FilePath;
     // Code to clean up
 }