Best practice of creating a custom exception in .NET
This is a great article explaining how to create a custom exception that follows the standard
http://dotnetconcepts.wordpress.com/2010/05/28/custom-exceptions-in-c/
This is a great article explaining how to create a custom exception that follows the standard
http://dotnetconcepts.wordpress.com/2010/05/28/custom-exceptions-in-c/
AI engineer and solution architect in Sydney. Agents, MCP, RAG, Azure, .NET, EV charging. I write about what breaks after go-live.
Before I was thinking of rewriting my own logging for my application but after having a careful thought, I decided just to get one from NuGet package instead of reinventing the wheel. I heard a lot…
1. Change the app.config/web.config of your application that calls the WCF service by adding System.diagnostics detail as below Code Snippet <system.diagnostics> <sources> <source name=”System.ServiceModel” switchValue=”Verbose,ActivityTracing” propagateActivity=”true”> <listeners> <add type=”System.Diagnostics.DefaultTraceListener” name=”Default”> <filter type=”” /> </add> <add name=”ServiceModelTraceListener”>…
There are a couple of ways in versioning your API 1. Through REST URL . domain.com/v1/Customers, domain.com/v2/Customers 2. Through HTTP Header – add the version as part of Content-type 3. Add the version on the REST…
I found this problem when i try to do any of httpweb request behind proxy and i got error of “407 proxy authentication required”. Normally your company has its own proxy server and sometimes you want…
Reflection on .NET by default is case sensitive for the class member. To make it case insensitive you need to pass BindingFlags.IgnoreCase . I’ve passed the ignorecase flag and now it doesn’t return anything!!! Dim pi…
Partners still drop files into named folders. Downstream still wants decompress, transform, compress, or encrypt. I do not encode that as a C# if/else chain per partner. I treat azure service bus routing as a YAML…