Ejemplo n.º 1
0
        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);
            }
        }
Ejemplo n.º 2
0
        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);
            }
        }
Ejemplo n.º 3
0
        virtual internal void AddTag(Hashtable S)
        {
            P4Record r = new P4Record(S);

            TaggedOutputs.Add(r);
        }
Ejemplo n.º 4
0
 virtual internal void AddRecord(P4Record r)
 {
     TaggedOutputs.Add(r);
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Outputs the record.
 /// </summary>
 /// <param name="record">The record.</param>
 public override void OutputRecord(P4Record record)
 {
     _P4Result.AddRecord(record);
 }
Ejemplo n.º 6
0
 /// <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)
 {
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Outputs the record.
 /// </summary>
 /// <param name="record">The record.</param>
 public override void OutputRecord(P4Record record)
 {
     _P4Result.AddRecord(record);
 }
Ejemplo n.º 8
0
 virtual internal void AddRecord(P4Record r)
 {
     TaggedOutputs.Add(r);
 }
Ejemplo n.º 9
0
 /// <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)
 {
 }