Ejemplo n.º 1
0
        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;
        }
Ejemplo n.º 2
0
 public MpcPageModel(AppConfigData pAppConfigData) : base()
 {
     AppConfig = pAppConfigData;
     Console.WriteLine("CTOR with 'AppConfigData' called.");
 }