예제 #1
0
        static async Task Main(string[] args)
        {
            logger.Information("start integration property mr-group");

            DateTime start = DateTime.Now;

            UploaderProperty uploader = new UploaderProperty(ConfigurationManager.AppSettings["resource"], ConfigurationManager.AppSettings["login"],
                                                             ConfigurationManager.AppSettings["password"], ConfigurationManager.AppSettings["odata"],
                                                             logger);
            Methods methods = new Methods(uploader, ConfigurationManager.AppSettings["propertyForDischarge"].Split(","), logger);
            await methods.ProcessingRealtyObjects();

            DateTime end  = DateTime.Now;
            TimeSpan time = end - start;

            logger.Information($"complete integration property mr-group \n Time execution (minutes): {time.TotalMinutes}");
        }
예제 #2
0
 public Methods(UploaderProperty uploader, string[] properties, Logger logger)
 {
     _uploader   = uploader ?? throw new ArgumentNullException(nameof(uploader));
     _properties = properties ?? throw new ArgumentNullException(nameof(properties));
     _logger     = logger ?? throw new ArgumentNullException(nameof(logger));
 }