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
Registration & Breakfast
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
Managing Cloud Storage Accounts using Logic Apps
Viknaraj Manogararajah
Data visualization using Python
Sekhar Srinivasan
Going Cross platform with AR Foundation
Vivek Sharma
Keynote
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
Lunch
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
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
Tea Break
Introduction to PowerBI
Aakash Maurya
Build Advanced SPFx solutions with React and Graph API
Siddharth Vaghasia
Build Business Intelligence Analyst (BIA) Skills
Sundaram Subramanian
Deep dive of Power Platform – AI BUILDER
Prasham Sabadra
Panel 1
What's new in SharePoint development
Vipul Jain
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
Deploying serverless API's with .Net core 3.0 on AWS & Azure
Amey Vartak
Panel 3
Blockchain with .NET Core (Ark)
Anshu Kumari
Closing Note & Prize Distribution
Dev Track
Cloud Track
Architecture Track
Emerging Tech Track
Registration & Breakfast
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
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
Keynote
.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
Lunch
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
Speed up your .Net Core Website
Sourabh Somani
Azure
Magnus Mårtensson
Demystifying Open Distro for Elasticsearch
Suman Debnath
Future of Data
Shivam Ahuja
Tea Break
gRPC with C# and .Net Core
Mangesh Gaherwar
Panel 1
Essentials of Cloud security
Parveen Malik
Power platform and Dynamics 365
Deepesh Somani
Microservices - the gRPC Way
Viswanatha Swamy
Panel 2
Reserved
Reserved
Closing Note & Prize Distribution
Building A Type-Safe Event Aggregator In C
An event aggregator provides a central route for publishing notifications and subscribing handlers. Instead of allowing every module to call every other module directly, a publisher emits an event and interested components receive it through a shared dispatch mechanism. This pattern can reduce coupling in embedded systems, desktop tools, services, and game engines written in C.
C does not provide generics, reflection, namespaces, or compile-time interfaces in the way C#, Rust, or modern C++ do. A safe design therefore depends on disciplined conventions: tagged event identifiers, strongly defined payload structures, explicit ownership rules, and carefully controlled registration functions. The goal is to make invalid event and payload combinations difficult to create.
For teams in Australia, the architecture also needs to fit practical operating conditions. A Melbourne engineering group may work with a Sydney-based cloud service, while a Perth device fleet operates with intermittent connectivity and high latency. UTC timestamps should be stored consistently, with AEST and AEDT applied only at presentation time.
The approach below uses standard C concepts and can be adapted to C11 or C17 projects. It suits applications that need predictable memory use, straightforward testing, and a small runtime footprint without depending on a heavyweight framework.
Defining Events And Payload Contracts
The foundation is a single event catalogue. Each event receives a stable identifier and a corresponding payload structure. For example, a telemetry system might publish temperature changes, connection failures, and configuration updates:
typedef enum {
EVENT_TEMPERATURE_CHANGED,
EVENT_CONNECTION_LOST,
EVENT_CONFIGURATION_UPDATED,
EVENT_COUNT
} event_id_t;
typedef struct {
int sensor_id;
float degrees_celsius;
} temperature_changed_t;
typedef struct {
int device_id;
int error_code;
} connection_lost_t;
typedef struct {
const char *profile_name;
unsigned revision;
} configuration_updated_t;
The identifier tells the dispatcher which event occurred, while the payload carries event-specific data. A subscriber must know the expected payload type before it handles the event. This is safer than passing arbitrary buffers and asking each callback to guess their meaning.
A common mistake is to expose a generic callback such as void (*callback)(void *) throughout the entire program. That interface is flexible, but it moves type checking into documentation and runtime behaviour. A better design keeps the generic callback inside the aggregator and exposes typed subscription wrappers to application code.
The event catalogue should also define lifetime rules. In a synchronous aggregator, a payload can remain valid for the duration of the publish call. In an asynchronous queue, the aggregator must copy the payload or transfer ownership to a managed allocation. Stating this rule in the API prevents handlers from retaining pointers to expired stack data.
Creating A Controlled Subscription API
A basic subscription record can store an event identifier, a callback, a context pointer, and an active flag:
typedef void (*event_callback_t)(
event_id_t id,
const void *payload,
void *context
);
typedef struct {
event_id_t id;
event_callback_t callback;
void *context;
int active;
} subscription_t;
The aggregator can hold a fixed-size array when predictability matters:
#define MAX_SUBSCRIPTIONS 128
typedef struct {
subscription_t items[MAX_SUBSCRIPTIONS];
size_t count;
} event_aggregator_t;
A registration function should validate the identifier, callback pointer, and available capacity. It should return a status value rather than silently failing. In safety-sensitive or embedded software, an explicit error such as EVENT_FULL is preferable to allocating memory unexpectedly.
Type-specific wrappers improve the public interface. A macro can connect a payload structure with a handler signature while keeping the internal dispatcher uniform:
typedef void (*temperature_handler_t)(
const temperature_changed_t *event,
void *context
);
typedef struct {
temperature_handler_t handler;
void *context;
} temperature_subscription_t;
For larger systems, X-macros can generate the event enumeration, payload declarations, and dispatch adapters from one list. This reduces mismatches between an event ID and its payload type. The technique is less visually simple than handwritten declarations, so it should be introduced only when the event catalogue is large or frequently changed.
A useful compromise is to expose functions such as subscribe_temperature_changed() and publish_temperature_changed(). Internally, these functions convert the typed request into the generic representation. Callers then work with descriptive APIs rather than casting void * values.
Managing Dispatch And Memory Safely
Synchronous dispatch is the simplest model. The publisher walks through active subscriptions and invokes matching callbacks before returning:
int event_publish(
event_aggregator_t *bus,
event_id_t id,
const void *payload
) {
if (bus == NULL || id >= EVENT_COUNT || payload == NULL) {
return -1;
}
for (size_t i = 0; i < bus->count; ++i) {
subscription_t *sub = &bus->items[i];
if (sub->active && sub->id == id) {
sub->callback(id, payload, sub->context);
}
}
return 0;
}
This model is appropriate when handlers are short and deterministic. A callback should avoid blocking network operations, lengthy file access, and operations that publish the same event recursively unless recursion is deliberately supported. A handler that takes several seconds can delay every other subscriber.
Queued dispatch separates the publisher from the consumers. The publisher copies an event into a ring buffer, and a worker later processes it. The queue needs a defined maximum payload size or a variant representation containing storage for every supported event. Fixed-size storage is easier to reason about, but it can waste memory when event sizes vary significantly.
Ownership becomes particularly important when payloads contain strings, arrays, or nested pointers. Copying a structure copies its pointers, not the data they reference. An event containing const char *message must therefore either guarantee that the referenced text remains alive until dispatch completes or duplicate the text into owned storage.
For Australian deployments, an event may include a timestamp from a device in Darwin, a service in Sydney, or an operator in Adelaide. Store timestamps as UTC, preferably using a clearly documented integer or struct timespec representation. Convert to local time only in user interfaces and reports, because daylight-saving changes affect jurisdictions differently.
Handling Reentrancy And Concurrency
A single-threaded aggregator is easier to make reliable. If the application has one event loop, subscriptions can be added and removed between dispatch cycles, avoiding locks altogether. This model works well for many command-line tools, embedded controllers, and UI applications.
Multithreaded use requires an explicit policy. A mutex can protect the subscription list, but holding that mutex while callbacks execute can cause deadlocks if a handler subscribes, unsubscribes, or publishes another event. A safer approach is to copy matching callbacks into a temporary array, release the lock, and then invoke the copied entries.
Unsubscription also needs careful semantics. If a callback removes itself during dispatch, the current iteration must not access invalid memory. Marking the subscription inactive and cleaning it up after the dispatch cycle is usually safer than immediately compacting the array.
Thread safety does not automatically make payloads safe. A publisher may pass a pointer to mutable data while another thread changes it. Immutable payloads, deep copies, or ownership transfer provide clearer guarantees. C11 atomics can help with flags and counters, but they do not replace a complete memory ownership strategy.
Cloud-connected Australian systems may process events from multiple regions or time zones. A service deployed across Azure Australia East and Australia Southeast should attach correlation IDs and UTC timestamps to diagnostic events. This makes it easier to follow a request across services without confusing local display times with event ordering.
Testing, Integration, And Operational Use
Testing should cover both the normal delivery path and the boundaries where C systems commonly fail. Verify that a matching subscriber receives the correct payload, unrelated subscribers are skipped, duplicate registrations behave as documented, and a full subscription store returns an error.
Use sanitising tools during development. AddressSanitizer can detect invalid memory access, UndefinedBehaviorSanitizer can expose dangerous conversions, and ThreadSanitizer can identify data races where supported by the compiler. Static analysis is valuable for checking unchecked return values, incompatible casts, and possible null dereferences.
A type-safe event aggregator reduces accidental misuse, but it cannot protect a program from every C hazard. The build should use strong warnings such as -Wall -Wextra -Wconversion -Wpedantic, with warnings treated as errors where practical. Continuous integration should test both debug and release builds, because optimisation can reveal undefined behaviour that remains hidden during local development.
Privacy should be part of event design when payloads contain customer identifiers, location data, or device records. Australian organisations handling personal information may need to account for the Privacy Act 1988 and the Australian Privacy Principles. Avoid placing sensitive values in verbose logs, define retention periods, and restrict diagnostic events to the data required for troubleshooting.
| Design Choice | Strengths | Risks | Suitable Use |
|---|---|---|---|
Generic void * callbacks |
Small implementation and flexible payloads | Weak compile-time checking and unsafe casts | Small prototypes with strict internal conventions |
| Tagged event IDs with fixed payloads | Predictable memory use and clear contracts | Catalogue requires maintenance | Embedded and resource-constrained applications |
| Typed wrapper functions | Stronger caller experience and readable APIs | More boilerplate code | Business systems and shared libraries |
| Synchronous dispatch | Simple control flow and immediate errors | Slow handlers block publishers | Event loops and short-lived notifications |
| Queued dispatch | Decouples producers from consumers | Requires queue limits and ownership rules | Network services and multi-threaded applications |
| X-macro event catalogue | Keeps generated declarations consistent | Can be unfamiliar to new contributors | Large or frequently evolving event systems |
Practical Safeguards For Production
- Keep event payload structures small, immutable during dispatch, and explicit about ownership.
- Use typed publish and subscribe wrappers instead of exposing unchecked casts to application modules.
- Define behaviour for duplicate subscriptions, missing handlers, queue overflow, and callback failure.
- Store timestamps in UTC and attach correlation identifiers to events crossing service boundaries.
- Run sanitiser, static-analysis, and race-detection checks in the build pipeline.
A well-designed C event aggregator is less about simulating a higher-level language and more about making contracts visible. Stable identifiers, dedicated payload structures, controlled adapters, and clear lifetime rules create a dependable event bus without hiding the cost of memory or concurrency. This balance is useful for Australian teams supporting software across cities, cloud regions, and devices with very different operating conditions.
1, CBD, Maharaj Surajmal Road, Near Yamuna Sports Complex, Delhi, 110032
GENERAL QUERIES
Manish Tewatia
manish@csharpcon.com
+91-9718-431-042
TICKET QUERIES
Atul Gupta
conference@csharpcon.com
+91-9910-125-804