protected static IWorkerParameters ProcessParameters(string[] args) { IWorkerParameters result = new WorkerParameters(); result.Deserialize(string.Join(" ", args.Where((s, i) => i > 0))); return(result); }
public IWorkerParameters GetWorkerParameters() { if (!string.IsNullOrEmpty(_rawParametersAsXML)) { IWorkerParameters result = new WorkerParameters(); result.Deserialize(_rawParametersAsXML); return(result); } return(null); }