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