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

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