Пример #1
0
        protected static IWorkerParameters ProcessParameters(string[] args)
        {
            IWorkerParameters result = new WorkerParameters();

            result.Deserialize(string.Join(" ", args.Where((s, i) => i > 0)));
            return(result);
        }
Пример #2
0
 public IWorkerParameters GetWorkerParameters()
 {
     if (!string.IsNullOrEmpty(_rawParametersAsXML))
     {
         IWorkerParameters result = new WorkerParameters();
         result.Deserialize(_rawParametersAsXML);
         return(result);
     }
     return(null);
 }