Exemple #1
0
 public bool Equals(InternalStreamId streamId, IStreamProducerExtension streamProducer)
 {
     if (Stream == default)
     {
         return(false);
     }
     if (ReferenceEquals(null, Producer))
     {
         return(false);
     }
     return(Stream.Equals(streamId) && Producer.Equals(streamProducer));
 }
Exemple #2
0
        public bool Equals(IAsyncStream <T> other)
        {
            var o = other as StreamImpl <T>;

            return(o != null && streamId.Equals(o.streamId));
        }