- TrackingController: Added database persistence for analytics events * Created AnalyticsEvent entity with user/session tracking * Store event type, data (JSON), and timestamp * Graceful fallback if DB write fails (game doesn't break) - ConfigController: Added real player counting * Query active sessions from last 15 minutes * Return actual player count instead of hardcoded 0 * Real-time server status with DB metrics - Added AnalyticsEvents table migration * Stores all game telemetry for analytics * Indexed by UserId for performance * JSON event data for flexibility Controllers now fully wired to database: - 11/18 controllers REAL implementation ✅ - 5/18 controllers STUB (config-based) ⚠️ - 2/18 controllers SERVICE (delegated) ⚠️ Total: 95 endpoints, improving from demo to production Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
23 lines
1006 B
C#
23 lines
1006 B
C#
//------------------------------------------------------------------------------
|
|
// <auto-generated>
|
|
// This code was generated by a tool.
|
|
//
|
|
// Changes to this file may cause incorrect behavior and will be lost if
|
|
// the code is regenerated.
|
|
// </auto-generated>
|
|
//------------------------------------------------------------------------------
|
|
|
|
using System;
|
|
using System.Reflection;
|
|
|
|
[assembly: System.Reflection.AssemblyCompanyAttribute("RR3CommunityServer")]
|
|
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
|
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
|
|
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+a934f57b526e5d02406dde801c5f5fed03fbe007")]
|
|
[assembly: System.Reflection.AssemblyProductAttribute("RR3CommunityServer")]
|
|
[assembly: System.Reflection.AssemblyTitleAttribute("RR3CommunityServer")]
|
|
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
|
|
|
|
// Generated by the MSBuild WriteCodeFragment class.
|
|
|