Exemplo n.º 1
0
        /// <summary>
        /// Initialize all applications from config properties through config backing fields.
        /// </summary>
        private static bool SetAppConfig()
        {
            // TODO: *** ***

            AddInitStatus("ExampleApp", ExampleAppManager.Initialize(ExampleAppCfg, ExampleKLogCfg));

            //AddInitStatus("ExampleApp2", ExampleAppManger2.Initialize(ExampleApp2Cfg, ExampleKLog2Cfg));

            //AddInitStatus("ExampleApp3", ExampleAppManger3.Initialize(ExampleApp3Cfg, ExampleKLog3Cfg));

            return(ConfigStatus());
        }
Exemplo n.º 2
0
        //[FunctionName("ExampleFunc")]
        //public static void Execute([TimerTrigger("0 */5 * * * *")]TimerInfo myTimer, ILogger log)
        public static void Execute(ILogger log)
        {
            log.LogInformation($"C# Timer trigger function executed at: {DateTime.Now}");
            log.LogInformation($"Config Status: {Configuration.ConfigStatus("KCopyApp")}");

            try
            {
                ExampleAppManager.Execute();
            }
            catch (Exception ex)
            {
                log.LogInformation(ex.ToString());
            }
        }