Exemplo n.º 1
0
 public void Dispose()
 {
     foreach (var disposable in Streams.OfType <IDisposable>())
     {
         disposable.Dispose();
     }
 }
Exemplo n.º 2
0
        private HekaDAQStream StreamWithIdentifier(ChannelIdentifier channelIdentifier)
        {
            HekaDAQStream result =
                Streams.OfType <HekaDAQStream>().First(s => s.ChannelNumber == channelIdentifier.ChannelNumber && s.ChannelType == (StreamType)channelIdentifier.ChannelType);

            if (result == null)
            {
                throw new DAQException("Unable to find stream with identifier " + channelIdentifier);
            }

            return(result);
        }
Exemplo n.º 3
0
 private IEnumerable <T> StreamsOfType <T>() where T : IDAQStream
 {
     return(Streams.OfType <T>());
 }