public Performance(Configs.PerformanceMonitorConfig config)
        {
            _config = config;
            Enabled = config.Enabled;

            if (Enabled)
            {
                MonitorStart = DateTimeOffset.Now.ToString();
            }

            Version        = "v" + System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
            _endpointStats = new ConcurrentDictionary <string, EndpointStat>();
            SlowestStats   = new List <Stat>();
        }
 public static void Configure(Configs.PerformanceMonitorConfig config)
 {
     _perf = new Models.Performance(config);
     _perf.ApplicationStart = _applicationStart.ToString();
     _config = config;
 }