Пример #1
0
 protected override ISingleStream <TOut> CreateOutputStream(EnsureSingleArgs <TOut> args)
 {
     return(base.CreateSingleStream(args.Input.Observable.Map((i, idx) =>
     {
         if (idx > 0)
         {
             throw new Exception($"{this.NodeName}: There are more than one element in the stream");
         }
         else
         {
             return i;
         }
     })));
 }
Пример #2
0
 public EnsureSingleStreamNode(string name, EnsureSingleArgs <TOut> args) : base(name, args)
 {
 }