public Startup(IConfiguration configuration) { Console.WriteLine("Function {0} called at {1}", "Startup.Startup(IConfiguration configuration)", DateTime.Now.ToString()); Configuration = configuration; AppConfig = new AppConfigData(); AppConfig.Version = 25; Console.WriteLine("ApCfg.Version = {0}", AppConfig.Version); // TODO: Fix dependency injection issue. // Dirty workaround using static prop Models.MpcPageModel.AppConfig = AppConfig; }
public MpcPageModel(AppConfigData pAppConfigData) : base() { AppConfig = pAppConfigData; Console.WriteLine("CTOR with 'AppConfigData' called."); }