- Recursive Inner Exception Looping for Logging Purpose.
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 class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Starting Padauk Web API Services"); | |
try | |
{ | |
var applicationName = "Padauk.API"; | |
var builder = WebApplication.CreateBuilder(args); | |
var startup = new WebHostStartup(builder.Configuration); |
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
//Path.Combine Equivalent in Javascript | |
function pathJoin(parts, sep){ | |
const separator = sep || '/'; | |
parts = parts.map((part, index)=>{ | |
if (index) { | |
part = part.replace(new RegExp('^' + separator), ''); | |
} | |
if (index !== parts.length - 1) { |
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
declare @json varchar(max) = '[ | |
{ | |
"InvoiceNumber": 3333428, | |
"PaidAmount": 10.0, | |
"Bank": "Bank Name 1", | |
"PaymentReference": "PaymentReference 1" | |
}, | |
{ | |
"InvoiceNumber": 2457759, | |
"PaidAmount": 15.0, |
NewerOlder