public static StartJobEventArgs Parse(string[] tokens) { var args = new StartJobEventArgs(); BuildEventArgs.ParseBase(tokens, args); args.HostName = tokens[EventArgStartIndex]; args.EventName = tokens[EventArgStartIndex + 1]; return(args); }
public BuildJobViewModel OnJobStarted(StartJobEventArgs e, DateTime sessionStartTime) { var core = this.Cores.FirstOrDefault(c => !c.IsBusy); if (core == null) { core = new BuildCoreViewModel(this.Cores.Count, this); // called from log watcher thread lock (this.Cores) { this.Cores.Add(core); } } var job = core.OnJobStarted(e, sessionStartTime); this.UpdateActiveCoreCount(); return(job); }