New to site?


Lost password? (X)

Already have an account?


(X)

Presents

#CSHARPCON20

The C# Corner Annual Conference 2020 is a three-day annual event for software professionals and developers.

3
DAYS
72
SPEAKERS
65
SESSIONS

Magnus Mårtensson
Microsoft Regional Director, Azure MVP, CEO Loftysoft

Avirag Jain
Director & CTO R Systems

Mahesh Chand
Founder C# Corner, CEO Mindcracker

Chris Gali
CEO & Co-Founder Graphite

Subinder Khurana
Chief Architect StoryProcess, Founder NASSCOM DeepTech Club

Bryan Rishforth
Investor, Chairman Graphite

Bryn Everson
Director Biz Dev Graphite

Raj Tiwari
Digital Transformation Leader, Futurist and Visionary

Joseph Guadagno
Microsoft MVP, Lead Quicken Loans

Nikita Sachdev
Entrepreneur, Blockchain Enthusiast & Advisor, Social Media Influencer

Doug Wagner
COO & Founder Adapt Technical Group

Ritesh Modi
Architect, Senior Evangelist, Cloud Architect

Crystal Wenrick
Director Communications Mindcracker

Allen O’Neill
Microsoft MVP, Consulting Engineer/Architect

Praveen Kumar
CEO MCN Solutions

Chris Love
Founder Love2Dev, Microsoft MVP, Author

Sanjay Vyas
Microsoft Regional Director, Microsoft MVP, Founder & CEO SkillLabs Technologies

Veena Sarda
Deep Learning Consultant, Author

Sekhar Srinivasan
C# Corner MVP, Microsoft Certified Trainer, Pluralsight Author

Lalit Bansal
Founder & CEO - EIY SYS

Navdeep Garg
CEO Revinfotech

Prakash Tripathi
Tech Manager/Leader, Microsoft MVP, Blogger

Bhavna Jain
Breakthrough Consultant

Naveen Sharma
Enterprise Architect, Leadership Coach, Author

Vidya Vrat Agarwal
Principal Architect, Microsoft MVP, Author

Sheetal Agarwal
Founder Clownselors, Medical Clown, Trainer

Abhishek Kant
Founder GTM Catalyst

Vishnu Saran
Founder & CEO VoiceQube

Sandeep Soni
Founder & CEO Deccansoft, Microsoft Certified Trainer

Parveen Malik
AVP InfoSec & Vulnerability Management, Information Security Expert

Nitin Pandit
Microsoft MVP, Developer Evangelist, Author

Niloshima Srivastava
C# Corner MVP, Tech Architect, Trainer, Blogger

Bala Chirtsabesan
Senior Software Engineer at Microsoft, Author

Manoj Mittal
Sr. Technical Architect, C# Corner MVP, Author

Chandni Di
Co-Founder Voice of Slum

Vithal Wadje
Technical Lead, Microsoft MVP, Author

Shivam Ahuja
Founder SkillCircle, Business Mentor

Chervine Bhiwoo
Solution Architect, Microsoft MVP, Author

Saurabh Jain
Vice President Paytm, Founder Fun2Do Labs, Author

Vinay Solanki
Head IoT at Lenovo, Founder IoT-NCR

Anshu kumari
Founder Blockchainkids, Inventor, Trainer

Amit Singal
CEO Startup Buddy

Dev Pratap
Co-Founder & CEO Voice of Slum

Amey Vartak
Technology Consultant, Full Stack Developer, C# Corner MVP, Author

Viswanatha Swamy
Principal Software Engineer, C# Corner MVP, Author

Sanket Verma
Research Engineer @ Ballistics (Forensics) and Chair, PyData Delhi

Sourabh Somani
Lead Developer, Microsoft MVP, Author

Abhishek Mishra
Software Architect, C# Corner MVP, Author

Siddharth Vaghasia
Technical Consultant, C# Corner MVP, Blogger

Bassam Alugili
Senior Software Specialist, Database Expert

S Ravi Kumar
Solution Architect, C# Corner MVP, Author

Sundaram Subramanian
Full Stack Developer, C# Corner MVP, Speaker

Deepesh Somani
Solution Architect, Microsoft MVP, Author

Debasis Saha
Technical Project Manager, C# Corner MVP, Blogger, Author

Vipul Jain
Software Architect, C# Corner MVP, Author

Akshay Patel
Technical Architect, Microsoft Certified Trainer, C# Corner MVP, Author

Stephen Simon
RPA Developer, Evangelist, Author

Vivek Sharma
Founder Kingster636, AR/VR Specialist

Jeetendra Gund
Technical Lead, C# Corner MVP, Author

Sujal Beniwal
AI Enthusiast, Student

M Viknaraj
Microsoft MVP, Azure Architect, Author

Prasham Sabadra
Software Architect, C# Corner MVP, Trainer, Author

Aakash Maurya
Senior Developer, C# Corner MVP, Speaker

Ankit Sharma
Senior Software Engineer, C# Corner MVP, Author

Mangesh Gaherwar
Team Lead, C# Corner MVP, Author

Viral Jain
Technical Consultant, C# Corner MVP, Author

Bhasker Das
Solution Architect, Evangelist

Manish Dwivedi
Associate Project Manager

Ck Nitin
Programmer, Author

Rohit Gupta
Technical Trainer, Author

Manish Tewatia
Full-stack Marketer, UX Designer

Bhavya Gaur
Technical Illustrator

Rohit Tomar
SEO/SMO Expert

Web Track

Cloud & Data Track

Dev Track

8am-9am

Registration & Breakfast

9am-10am

Future of Desktop Apps with JS (ElectronJs)

Nitin Pandit

Building Serverless Microservices Using Microsoft Azure

Vithal Wadje

Innovating RPA: A Robot for Every Person

Stephen Simon

10am-11am

Managing Cloud Storage Accounts using Logic Apps

Viknaraj Manogararajah

Data visualization using Python

Sekhar Srinivasan

Going Cross platform with AR Foundation

Vivek Sharma

11am-12pm

Keynote

12pm-1pm

Managing your Azure dependencies in ASP.NET Core apps using VS

Bala Chirtsabesan

Securing Applications on Intelligent Azure

Abhishek Mishra

Getting started with Blazor the Framework of Future

S Ravi Kumar

1pm-2pm

Lunch

2pm-2:45pm

Build Progressive Web Apps using Angular 9

Debasis Saha

Build and deploy to any platform using Azure DevOps

Chervine Bhiwoo

Deep Dive in Azure Service Bus

Akshay Patel

2:45pm-3:45pm

Build a Native Mobile Application using React Native and JavaScript

Joseph Guadagno

Making sense of Web Job, Web Job SDK and Functions in Azure

Prakash Tripathi

CloudFront Distribution in AWS

Viral Jain

3:45pm-4pm

Tea Break

4pm-4:30pm

Introduction to PowerBI

Aakash Maurya

Build Advanced SPFx solutions with React and Graph API

Siddharth Vaghasia

Build Business Intelligence Analyst (BIA) Skills

Sundaram Subramanian

4:30pm-5pm

Deep dive of Power Platform – AI BUILDER

Prasham Sabadra

Panel 1

What's new in SharePoint development

Vipul Jain

5pm-5:30pm

Build a SSO (Single Sign On) based Native JavaScript application with Microsoft Identity within 10 minutes

Manoj Mittal

Panel 2

Applications and working of AI

Veena Sarda

5:30pm-6pm

Deploying serverless API's with .Net core 3.0 on AWS & Azure

Amey Vartak

Panel 3

Blockchain with .NET Core (Ark)

Anshu Kumari

6pm-6:30pm

Closing Note & Prize Distribution

Dev Track

Cloud Track

Architecture Track

Emerging Tech Track

8am-9am

Registration & Breakfast

9am-10am

Creating Full-Stack Web Apps Using Server-Side Blazor

Ankit Sharma

Real time face recognition with MS Cognitive Services

Niloshima Srivastava

Building Scalable APIs with GraphQL

Jeetendra Gund

Future of development with AI and Blockchain

Navdeep Garg

10am-11am

Debugging Tips and Tricks with Visual Studio 2019

Joseph Guadagno

Azure Containers

Abhishek Kant

Enterprise Architecture

Naveen Sharma

Bot Framework - learn it fast and look like a boss!

Allen O’Neill

11am-12:30pm

Keynote

12:30pm-1:30pm

.Net Core & C# 8 Performance

David McCarter

Working with Azure kubernetes services

Ritesh Modi

Becoming an Architect

Vidyavrat Agarwal

Why Techies Need to Learn Product Management

Saurabh Jain

1:30pm-2:30pm

Lunch

2:30pm-3:30pm

Build a rules engine in .Net Core

Sanjay Vyas

Building CI and CD Pipeline using Azure DevOps

Sandeep Soni

Entity Framework Core - Tips and Tricks, Performance Optimization, and Tuning

Bassam Alugili

Hacking your way into Data Science

Sanket Verma

3:30-4:15pm

Speed up your .Net Core Website

Sourabh Somani

Azure

Magnus Mårtensson

Demystifying Open Distro for Elasticsearch

Suman Debnath

Future of Data

Shivam Ahuja

4:15pm-4:30pm

Tea Break

4:30pm-5:15pm

gRPC with C# and .Net Core

Mangesh Gaherwar

Panel 1

Essentials of Cloud security

Parveen Malik

Power platform and Dynamics 365

Deepesh Somani

5:15pm-6pm

Microservices - the gRPC Way

Viswanatha Swamy

Panel 2

Reserved

Reserved

6pm-6:30pm

Closing Note & Prize Distribution

Scheduling background jobs in ASP.NET Core with Quartz.NET

Modern web applications rarely live by request-response alone. A booking platform might release held seats after a timeout, a payroll service has to push payslips at midnight, and a marketing tool wants to dispatch queued campaigns without blocking the API. C# developers working on the Microsoft stack have long relied on System.Threading.Timer, IHostedService, or BackgroundService for simple fire-and-forget work, yet these primitives quickly fall short when calendars, cron expressions, misfire rules, and durable state enter the picture. Quartz.NET fills that gap, and it integrates cleanly with ASP.NET Core through standard dependency injection.

Quartz.NET is a mature port of the Java scheduler and has been part of the .NET ecosystem for nearly two decades. It supports triggers driven by simple intervals, full cron expressions, and calendar exclusions. Triggers can be paused, resumed, and reprioritised at runtime, and the scheduler itself can run in a cluster so that several nodes cooperate instead of fighting over the same job. For teams in Australia building systems that span AEST, ACST, and AWST, having a scheduler that respects time zones correctly is a practical necessity rather than a nice-to-have.

The library also pairs well with the wider .NET hosting model. Once registered through IServiceCollection, the scheduler starts with the web host and stops gracefully on shutdown. Combined with ASP.NET Core's logging, configuration, and health checks, you get a background processing story that fits naturally into the same project that serves your HTTP traffic. This guide walks through the moving parts and finishes with concrete recommendations drawn from production deployments.

Talks at the C# Corner Annual Conference frequently surface the same questions developers hit when they first wire Quartz into a real service: how to store schedules, how to avoid double execution, and how to react when an Azure region wobbles. The answers below come from systems running in Sydney, Melbourne, and Brisbane, scaled across web farms and container platforms.

Setting up Quartz.NET in an ASP.NET Core project

The fastest path to a working scheduler starts with the Quartz.Extensions.Hosting NuGet package. It pulls in the core library and adds the AddQuartz and AddQuartzHostedService extension methods that wire the scheduler into the generic host. After installing the package, a single block of code in Program.cs is enough to bring the scheduler online, and the same code works for minimal APIs and the older Startup style.

Configuration is typically split between appsettings.json and code. The JSON file holds connection strings, thread pool sizes, and serializer options, while the AddQuartz lambda registers job types, triggers, and listeners. This separation lets operations teams tune the scheduler without rebuilding the application, which is useful when a deployment lands in a restricted environment such as a bank in Sydney or a government agency in Canberra.

Job classes are simple POCOs that implement IJob. The Execute method receives an IJobExecutionContext and is expected to do its work asynchronously. Because the scheduler creates a new instance per execution, dependencies must come from the constructor, and the framework resolves them from the same DI container that serves HTTP requests. That makes it easy to call repositories, email clients, or downstream services registered elsewhere in the application.

Defining jobs and triggers programmatically

Triggers are where most of the interesting decisions happen. Quartz distinguishes between simple triggers, which fire a fixed number of times at a fixed interval, and cron triggers, which follow a calendar expression. Cron is the right choice when the schedule needs to align with business rhythms, such as running a reconciliation job at 02:15 every weekday in AEST or sending a digest at 09:00 in Perth every Monday morning.

A cron expression such as 0 0 9 ? * MON reads as "at 09:00 every Monday". The library also accepts cron strings with a time zone, which removes a common source of bugs. Without an explicit zone, Quartz evaluates the schedule in the server's local time, and an application deployed to an AWS Sydney region will behave differently from one running on an on-premises box in Adelaide. Setting TimeZoneInfo.FindSystemTimeZoneById("Australia/Sydney") on the trigger builder removes that ambiguity.

Triggers can also be stored rather than built in code. With AddQuartz, you can use UseMicrosoftDependencyInjectionJobFactory and UseSimpleTypeLoader to keep configuration declarative. For applications with dozens of jobs, a small administration endpoint that lists the next fire times is a helpful debugging aid and is often the first thing support teams ask for during incidents.

Persisting job state with SQL Server

In-memory storage works during development, yet it loses every scheduled job when the process restarts. For anything beyond a toy project, the scheduler should use a relational store. Quartz ships with SQL Server, PostgreSQL, MySQL, and Oracle adapters, and the scripts live in the package's db folder. Running them against a fresh database creates the tables QRTZ_JOB_DETAILS, QRTZ_TRIGGERS, QRTZ_CRON_TRIGGERS, and so on.

The connection string lives under the quartz.jobStore.connectionString key in appsettings.json. For local development, SQLite is convenient; for production, teams in finance and mining in Melbourne and Brisbane often standardise on SQL Server because the rest of their estate already runs on it. The store also acts as the coordination point for clustering, which is covered later.

State persistence unlocks another useful feature: misfire policies. If the scheduler is down at the moment a trigger should fire, Quartz will catch up on the next start according to the policy attached to the trigger. A misfire instruction of WithMisfireHandlingInstructionFireAndProceed is appropriate for jobs that must run exactly once, while DoNothing suits workloads where missing a slot is acceptable. Picking the wrong policy can quietly double-bill customers or send duplicate notifications, so it deserves a deliberate decision rather than a default.

Hosting Quartz as a singleton service

The hosted service that ships with Quartz.Extensions.Hosting starts the scheduler when the application starts and stops it on shutdown. The await scheduler.Shutdown(waitForJobsToComplete: true) call gives in-flight jobs a chance to finish, which matters when a job performs a multi-step payment capture or a long file transfer to an S3 bucket in the ap-southeast-2 region.

For applications that need more control, registering ISchedulerFactory as a singleton and exposing IScheduler through a wrapper service lets you request the scheduler from controllers, minimal API endpoints, or SignalR hubs. A common pattern is an admin route that pauses all triggers during a deployment, performs the swap, and then resumes them. Wrap that route with role-based authorisation and the operations team in Melbourne can manage releases without needing direct database access.

Logging integration is the other piece that pays off quickly. Quartz emits events for job to be executed, job was vetoed, trigger missed, and trigger complete. Forwarding those to Application Insights or Seq gives a clear picture of background activity and helps correlate spikes in job duration with downstream outages. In a country where latency between Sydney and Singapore can swing during peak trading hours, that visibility is often the difference between catching an incident at 03:00 AEST and waking up to a flooded support queue.

Building listeners for monitoring

Listeners attach to jobs, triggers, or the scheduler itself. A ITriggerListener can record how long a trigger took to acquire, and a IJobListener can measure execution time, capture exceptions, and push metrics. The pattern is straightforward: implement the interface, register the type through AddQuartz, and let the scheduler wire it in.

For Australian teams running multi-tenant SaaS products, a job listener that tags metrics with the tenant identifier is invaluable. It surfaces noisy neighbours early and helps with capacity planning when onboarding a large customer such as a national retailer or a state government department. The same listener can also enforce a per-job timeout by wrapping the execution in a CancellationTokenSource linked to a configurable limit.

Trigger listeners are useful for veto logic. A job that posts messages to a third-party API can check a feature flag before firing and return false from the VetoJobExecution method if the flag is off. That keeps disabled features from leaving noisy stack traces in the logs during a planned maintenance window, and it is often cleaner than removing the trigger altogether.

Clustering Quartz for high availability across regions

Quartz clustering lets several application instances share the same job store and ensures that each trigger fires exactly once across the cluster. The scheduler uses database row-level locks to coordinate, so all nodes must point at the same database and share the same cluster name. Setting quartz.jobStore.clustered to true and choosing a stable name such as cci-cluster is usually enough.

For teams running active-active deployments across multiple Azure regions, clustering pairs well with traffic manager or front door. If the primary node in Sydney goes down during a routine redeploy, the secondary node in Melbourne picks up the triggers within a few seconds. The lock leases default to a short interval, but for cross-region deployments a slightly longer value avoids spurious failovers caused by transient network jitter.

Clustering also makes blue-green deployments safer. Triggering a pause on the outgoing instance before the swap and a resume on the incoming instance afterwards prevents two nodes from racing on the same job. Combined with SQL Server's read committed snapshot isolation, the result is a steady heartbeat of background work that survives patches, scaling events, and the occasional regional outage without losing a single scheduled task.

Practical recommendations for Australian teams running Quartz in production

  • Store schedules in the database rather than in code when the cadence changes often, and keep the cron expression in a single configuration file reviewed by operations.
  • Set the scheduler time zone explicitly to Australia/Sydney or Australia/Perth on every trigger, and document the choice next to the job class so future maintainers do not guess.
  • Use the misfire policy that matches the business rule, and add a unit test that simulates a missed fire to confirm the chosen behaviour.
  • Emit Quartz events to the same observability stack that handles HTTP requests, and tag metrics by tenant and region so dashboards reflect real production shape.
  • Run clustered nodes in at least two regions separated by enough network distance to avoid correlated failures, and rehearse failover during business hours rather than waiting for an incident.

The Leela Ambience Convention Hotel

1, CBD, Maharaj Surajmal Road, Near Yamuna Sports Complex, Delhi, 110032

KNOW MORE

GENERAL QUERIES


Manish Tewatia

+91-9718-431-042

TICKET QUERIES


Atul Gupta

+91-9910-125-804