Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            var logger = new AppLogger();

            try
            {
                string url = WebApiConfig.GetSiteUrl();
                using (WebApp.Start<Startup>(url))
                {
                    logger.Info(null, "Started Sitter on {0}", url);
                    logger.Info(null, "ConfigType:" + AppConfigWebValues.Instance.ConfigType);
                    logger.Info(null, "S3BucketName: {0} ", AppConfigWebValues.Instance.S3BucketName);
                    logger.Info(null, "AwsKeyId: {0} ", AppConfigWebValues.Instance.AwsKeyId);


                    System.Console.ReadLine();
                    System.Console.ReadLine();

                }
            }
            catch (Exception ex)
            {
                logger.Error(null, "Program.Main", ex);
                System.Console.ReadLine();
            }
        }
Exemplo n.º 2
0
 private static void DisplayConfigInfo(AppLogger log)
 {
     log.Info(null, "MySitterHub AppService started");
     log.Info(null, "ConfigType:" + AppConfigSvcValues.Instance.ConfigType);
     log.Info(null, "SmsSimulationMode:" + AppConfigSvcValues.Instance.SmsSimulationMode);
     log.Info(null, "WhiteList:" + AppConfigSvcValues.Instance.WhiteList);
     log.Info(null, "WhiteList#s:" + string.Join(",", MessagingConstants.Whitelist));
     log.Info(null, "SourcePhone:" + AppConfigSvcValues.Instance.SourcePhone);
 }
Exemplo n.º 3
0
        private static void Main(string[] args)
        {
            AppLogger log = new AppLogger();

            try
            {
                DisplayConfigInfo(log);
                new MessageWorker().DoWork();
            }
            catch (Exception ex)
            {
                log.Error(null, null, ex);
                Console.ReadLine();
            }
        }