This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | rabbitTemplate.setReturnsCallback((returned) -> { | |
| var message = returned.getMessage(); | |
| var routingKey = returned.getRoutingKey(); | |
| var exchange = returned.getExchange(); | |
| log.info("{}: The message was not successfully routed to the queue", returned.getMessage().getMessageProperties().getMessageId()); | |
| }); | |
| rabbitTemplate.setConfirmCallback((correlation, ack, cause) -> { | |
| if (ack) { | |
| log.info("Received " + (ack ? " ack " : " nack ") + "for correlation: " + correlation); | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | public string DataTableToWorkBook(DataTable dt, string postfix) | |
| { | |
| object oMissing = Missing.Value; | |
| Microsoft.Office.Interop.Excel.Application app; | |
| Microsoft.Office.Interop.Excel.Workbooks wkBks; | |
| Microsoft.Office.Interop.Excel.Workbook wkBk; | |
| Microsoft.Office.Interop.Excel.Sheets wkShts; | |
| Microsoft.Office.Interop.Excel.Worksheet wkSht; | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | namespace ConsoleApp; | |
| /* | |
| A stack is a linear Data Structure in Software Engineering that implements a | |
| Last In First Out(LIFO) principle. The most common methods that it requires | |
| include: | |
| - Push | |
| Add an element to the stack. This element can then be accessed first if it was | |
| pushed last. | |
| - Pop |