public override void OutputRecord(P4Record record) { OnPrintStreamEventHandler handler = _printEvent; // Event will be null if there are no subscribers if (handler != null) { string depotFile = record["depotFile"]; string action = record["action"]; string fileType = record["type"]; DateTime changeDate = _p4.ConvertDate(record["time"]); int change = int.Parse(record["change"]); // get the information about the file _args = new P4PrintStreamEventArgs(depotFile, action, fileType, changeDate, change); handler(_args, out _stream); } }
virtual internal void AddTag(Hashtable S) { P4Record r = new P4Record(S); TaggedOutputs.Add(r); }
virtual internal void AddRecord(P4Record r) { TaggedOutputs.Add(r); }
/// <summary> /// Outputs the record. /// </summary> /// <param name="record">The record.</param> public override void OutputRecord(P4Record record) { _P4Result.AddRecord(record); }
/// <summary> /// Executed when tagged output is streamed from the server. /// </summary> /// <param name="record">The tagged output in the form of a P4Record.</param> public virtual void OutputRecord(P4Record record) { }