Custom Field Logging with NLog and Oracle
Oracle Table Schema for NLog Integration
Create a data base table to store structured log entries:
CREATE TABLE APPLICATION_LOGS (
log_id VARCHAR2(60) NOT NULL,
application VARCHAR2(20),
component VARCHAR2(30),
function_name VARCHAR2(30),
action_type VARCHAR2(20),
source_class VARCHAR2(500),
message ...
Posted on Sat, 19 Sep 2026 16:51:22 +0000 by PRodgers4284
Handling CORS in .NET Framework and ASP.NET Core with DeveloperSharp
Cross-Origin Resource Sharing (CORS) restrictions typically surface when browser-based clients initiate HTTP requests to backend APIs. The browser enforces security policies that differentiate between standard requests and preflighted (complex) requests, the latter triggering an OPTIONS call before the actual payload transmission. Many traditio ...
Posted on Thu, 17 Sep 2026 16:25:01 +0000 by cainscripter
Building Minimal APIs with ASP.NET Core
Overview of Minimal APIs
In the expansive landscape of ASP.NET Core, "minimal API applications" function as compact yet powerful tools designed for rapidly constructing efficient HTTP APIs. These APIs natively support JSON data serialization, making them ideal for seamless interactions with single-page applications (SPAs) or mobile applications ...
Posted on Sun, 06 Sep 2026 16:24:41 +0000 by Gruzin
Integrating NLog in a .NET Core Web API
1. Installing the NLog Packages
Add the following NuGet packages to your project:
NLog
NLog.Web.AspNetCore
These can be installed via the Package Manager Console or the .NET CLI.
2. Configuring NLog
Create an NLog.config XML file in the project root. Set its Build Action to Content and Copy to Output Directory to Copy if newer. Below is a sam ...
Posted on Thu, 03 Sep 2026 16:41:06 +0000 by mgzee
Converting IdentityServer4 from In-Memory Stores to a Database-Backed User Service
This guide demonstrates how to replace the default in-memory user store in IdentityServer4 with a custom service that queries a database. While IdentityServer4 provides Entity Framework (EF) based data sources, this approach shows how to implement a database-driven user store by extending its core interfaces. The focus will be on the user authe ...
Posted on Thu, 03 Sep 2026 16:33:26 +0000 by inferium
ASP.NET Core JWT Authentication Implementation
JWT Authentication in ASP.NET Core
ASP.NET Core separates authentication and authorization processes. This implementation demonstrates JSON Web Token (JWT) usage with essential components:
Identity represents user identity
Claim denotes individual credential attributes
Policy defines authorization rules
Setup and Configuration
Install require ...
Posted on Thu, 03 Sep 2026 16:04:07 +0000 by onepixel
Managing File Uploads to Windows Network Shares in ASP.NET Core
Configuration Setup
First define the necessary settings in appsettings.json:
{
"SharedFolderSettings": {
"RemotePath": "\\\\192.168.1.200\\Files",
"PublicBaseUrl": "http://files.example.com/",
"User": "shareuser",
"Password": "sharepassword"
...
Posted on Wed, 02 Sep 2026 16:27:47 +0000 by CoderGoblin
Understanding IActionFilter in ASP.NET Core Web API
This article provides an overview of IActionFilter in ASP.NET Core Web API, focusing on its execution order, attribute usage, and registration methods. The environment used is VS2019 with ASP.NET Core 3.1.
Execution Order of IActionFilter
The filter is called after the controller's constructor is executed.
The OnActionExecuting method of IAct ...
Posted on Tue, 25 Aug 2026 16:21:48 +0000 by Xurion
Implementing Background Scheduled Tasks with Quartz in .NET Core Applications
Introduction to Quartz Scheduler
Quartz is a feature-rich, open-source job scheduling library that can be integrated into virtually any application. For .NET Core developers, Quartz.NET provides a powerful solution for implementing background tasks that need to run on specific schedules. Using Cron expressions, Quartz allows for complex schedul ...
Posted on Mon, 24 Aug 2026 16:16:10 +0000 by stow19
Implementing Phone Number Acquisition in WeChat Mini Programs with ASP.NET Core
Overview
Obtaining a user's phone number in a WeChat Mini Program requires a multi-step process involving session key exchange and symmetric decryption. This guide covers the complete implementation using ASP.NET Core backend.
Step 1: Session Key Exchange
Frontend Login
In the Mini Program's app.js, invoke wx.login() to obtain an authorization ...
Posted on Fri, 21 Aug 2026 16:08:26 +0000 by johnpaine