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)); }
public virtual bool Equals(IAsyncStream <T> other) { var o = other as StreamImpl <T>; return(o != null && streamId.Equals(o.streamId)); }