public override bool Equals(object other) { if (other == null || other.GetType() != typeof(StoredSource)) { return(false); } StoredSource otherStoredSource = (StoredSource)other; return(this.Id == otherStoredSource.Id && this.EntryValue.Equals(otherStoredSource.EntryValue)); }
internal void DispatchEach() { while (!closed) { StoredSource storedSource = reader.ReadNext(); if (storedSource.IsValid()) { Message message = new Message( Convert.ToString(storedSource.Id), storedSource.EntryValue.Type, storedSource.EntryValue.Body); topic.Publish(message); reader.Acknowledge(storedSource.Id); } else { Thread.Sleep(100); } } }