Example #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);
            }
        }
Example #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);
            }
        }
Example #3
0
        virtual internal void AddTag(Hashtable S)
        {
            P4Record r = new P4Record(S);

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