Beispiel #1
0
 /// <summary>
 /// Creates a datapipe handler for a PIDataPipe
 /// </summary>
 /// <param name="observer">The observer object that will receive the data changes</param>
 public DataPipeHandler(IObserver <AFDataPipeEvent> observer, AFDataPipeType pipeType)
 {
     _PIPipe = new PIDataPipe(pipeType);
     _PIPipe.Subscribe(observer);
 }
Beispiel #2
0
 /// <summary>
 /// Creates a new instance of console data observer.
 /// It prints data it receives to the console
 /// </summary>
 /// <param name="afDataPipeType">The type of DataPipe, will be printed on the commandline, so its easier to understand what type of data is coming.</param>
 public PIConsoleDataObserver(AFDataPipeType afDataPipeType)
 {
     _dataPipeType = afDataPipeType;
 }