Beispiel #1
0
 public void Update(BaseProperties baseProperties)
 {
     if (baseProperties == null)
     {
         throw new ArgumentException("baseProperties");
     }
     Update(baseProperties.Properties);
 }
Beispiel #2
0
        public static string GetLogPath(string[] args, string defaultPath)
        {
            var properties = BaseProperties.GetProperties(args);

            if (properties == null)
            {
                return(defaultPath);
            }
            var logProperties = new LogBaseProperties(properties);

            return(logProperties.LogPath);
        }
Beispiel #3
0
        public static BaseProperties GetProperties(string[] args)
        {
            string propArgs = args.FirstOrDefault(x => x.StartsWith("-props:"));

            if (propArgs == null)
            {
                return(null);
            }
            propArgs = new string(propArgs.Skip("-props:".Length).ToArray());
            var props = new BaseProperties(propArgs);

            return(props);
        }
Beispiel #4
0
 public LogBaseProperties(BaseProperties baseProperties) : base(baseProperties)
 {
 }
Beispiel #5
0
 public BaseProperties(BaseProperties baseProperties)
 {
     Properties = baseProperties.Properties;
     PropsArgs  = baseProperties.PropsArgs;
 }
Beispiel #6
0
 public ScanProperties(BaseProperties baseProperties) : base(baseProperties)
 {
 }
Beispiel #7
0
 public ServiceProperties(BaseProperties baseProperties) : base(baseProperties)
 {
 }