コード例 #1
0
        public Dictionary <string, string> ToProperties()
        {
            Dictionary <string, string> properties = new Dictionary <string, string>();

            properties.Add("Id", Id);
            properties.Add("FileName", FileName);
            properties.Add("UploadEndPoint", UploadEndPoint);
            properties.Add("StartTimeUtc", StartTimeUtc.ToString());
            properties.Add("EndTimeUtc", EndTimeUtc.ToString());
            properties.Add("FileCreationTimeUtc", FileCreationTimeUtc.ToString());
            properties.Add("Status", Status.ToString());
            properties.Add("IsRetake", IsRetake.ToString());
            properties.Add("SourceMachineName", SourceMachineName);
            properties.Add("ErrorMessage", ErrorMessage);

            return(properties);
        }
コード例 #2
0
        public Dictionary <string, string> ToProperties()
        {
            Dictionary <string, string> properties = new Dictionary <string, string>();

            properties.Add("LoadNumber", LoadNumber);
            properties.Add("IsRetake", IsRetake.ToString());
            properties.Add("FilePath", Setup.FilePath);
            properties.Add("ImagesPerCall", Setup.ImagesPerCall.ToString());
            properties.Add("SourceMachineName", Setup.MachineName);
            properties.Add("UploadEndpoint", Setup.UploadEndpoint);

            if (UploadInfoList != null)
            {
                foreach (var item in UploadInfoList)
                {
                    properties.Add(item.Id, item.ToPropertyString());
                }
            }

            return(properties);
        }